There's a somewhat hidden feature in iOS called WiFi Calling, which lets you use WiFi to make and receive calls and text messages instead of relying on your carrier's cellular network.

WiFi Calling is great when your iPhone is out of reach of your carrier's cell signal at home or at your workplace where you have access to WiFi, and it'll even work when you're connected to public hotspots, like at coffee shops.