Hi there 👋, may I ask where did you bought phone from? If it's from a private seller, or like places like Facebook marketplace it could be that your phone got blacklisted, you could also try to reset network settings by going to settings>general management> reset > reset network settings
Also you can try and contact your network provider.