Check the modlog on the instance you were banned from. If it’s a temporary ban, it’ll also show you how long the ban is in effect.
Unfortunately, Lemmy lacks a good UI for showing you this information. Then again, it’s unfinished software, so who knows, maybe it’ll be better in the next release!