Have you ever seen the dreaded “No Service” label at the top of your iPhone’s screen, even when you’re pretty sure there should be cellular reception? It’s not common, but the iPhone’s cellular radio can occasionally get confused. Luckily, you can easily fix the problem. Open Control Center (swipe down from the upper-right corner on an iPhone X or later or an iPad; or up from the bottom on an earlier iPhone) and tap the airplane icon to put the iPhone in airplane mode. That turns off the cellular radio. Wait a few seconds and tap the airplane icon again to re-enable the cellular radio. If that doesn’t work, power-cycle your iPhone by holding the side or Sleep/Wake button until you see the Power Off slider. Slide it to turn the iPhone off, then press and hold the side or Sleep/Wake button again until the iPhone restarts.
If that doesn’t help, check with someone nearby who uses the same cell phone company you do. Sometimes there is a local outage that affects everyone in the area. If that’s the case the best thing you can do is just wait. Problems like that rarely last for more than a few minutes or hours.
If all else fails you may want to book an appointment with Apple, as it’s likely a hardware problem.