Wait for the Ban to Expire: WhatsApp bans typically last for 24-72 hours, so the first thing you should do is wait for the ban to expire.
Contact WhatsApp Support: If your ban persists after the usual period, you can contact WhatsApp support through the app or by emailing them at support@whatsapp.com. Explain your situation to them and request to have your ban lifted.
Use a Different Phone Number: If you can't get your original number unbanned, you can try using a different phone number to create a new account on WhatsApp.
Use WhatsApp Business: If you have a business, you can try using WhatsApp Business instead of the regular WhatsApp app.
Note that WhatsApp bans users for violating their terms of service, which includes spamming, using third-party apps, sending illegal or inappropriate content, and more. To avoid getting banned in the future, make sure to follow their guidelines and use the app responsibly.