Without any knowledge about what happened we won't be able to tell you. Didn't you receive a message from the moderators or their bot? They usually never ban anybody without giving a reason.
If you want to appeal your ban, you'll have to write a ban appeal in the dedicated section:
Discord Ban Appeals
However it's advised to wait for at least a week or two before appealing. Ban appeals posted too early are generally rejected.