I have listed the below information assuming you are requesting information on how to correct/update your bank routing number for direct deposit.
If the bank rejects the transaction they will send it back to the IRS. At that time, the IRS will send you a paper check instead. The entire process can take six to eight weeks. I have taken the liberty to include the below information that outlines the steps to change your bank account information for your reference.
If you e-filed, wait until your return is accepted or rejected by government.
What if the account information I entered is valid, but for somebody else's account?
The good news is that most banks have systems in place that prevents checks from being deposited into accounts bearing a different name.
Even so, it would be good idea to call the IRS at 800-829-1040 as soon as you realize your mistake. Also notify your state tax agency if you're getting your state refund direct-deposited.