1.
Try this -> Remove and reinsert the SIM card.
If it doesn't help contact your carrier, maybe the SIM card is damaged, ask for a replaced (new) card. Normally it is free.
Also  ask 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.
iPhone 7
Check -> iPhone 7 Repair Program for "No Service" Issues
iPhone 7 Repair Program for "No Service" Issues - Apple Support
3.
If it doesn't help see these Apple articles below:
If you see No Service, Searching, or SOS on your iPhone or iPad
If you see No Service, Searching, or SOS on your iPhone or iPad - Apple Support
Â
Manually update your carrier settings on your iPhone or iPad
Manually update your carrier settings on your iPhone or iPad - Apple Support
Â
Update your network provider settings manually on your iPhone or iPad
Update your network provider settings manually on your iPhone or iPad – Apple Support (UK)