as far as I know to recover the banned account is done through the meta section. there we can report that our account is banned by using other account and then we can make a defense against errors that may not we do, but here there are various types of banned given by the moderator. there is a limit and some are permanent, if we get banned with a certain time limit then we have to wait until the time is finished.
This is a different cases. What you mentioned is for a
hacked account.He is asking for a
locked account. And finally, most of permanent bans are irreversible. Only reversed when it was by mistake.