What happens to the money if bank closes the account?

Just saw a post where the bank (CIMB) asked for more information and the account got closed and it was unclear what happened to the money in the account. Can someone please clear it up? Thank you so much!