After you file

The bank rejected your direct deposit because your name was not on the account.  The bank sent the tax refund back to the IRS.  The IRS then would have mailed a refund check to the address on your tax return.