How can I change my direct deposit method from a past bank account to a new bank account?

I just need to change my bank account from an old bank account because I no longer have access to it