If it doesn't help visit your carrier, maybe the SIM card is damaged, ask for a replaced (new) card. Normally it is free.
Ask also to check if the SIM tray is bent, as even a tiny misalignment can cause the SIM card to not fully connect with the internal contacts in your iPhone.
2.
See these Apple articles below:
If you see No Service, Searching, or SOS on your iPhone or iPad
This thread has been closed by the system or the community team.
You may vote for any posts you find helpful, or search the Community for additional answers.
My iPhone 7 could not connect to cellular network it says cellular issue
Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.