If you have filed your 2019 tax return the method of receiving the federal tax refund cannot be changed.
The bank will reject the direct deposit of the refund since the account is closed. The bank will then return the refund to the IRS. The IRS will mail a refund check to the address entered on the tax return.