Work out which layer is failing first: the device can't register on a network, it registers but gets no data session, or it has data but your application doesn't hear from it. Each layer has different causes. Start at the top and stop at the first check that fails.
Success sign: AT+CEREG? (LTE, LTE-M, NB-IoT) shows registered, home or roaming.
Success sign: The module gets an IP address.
That's layer 2 or 3. First check the device has an IP address; if not, it's the APN or plan. If it does, the network side is working, so look at the server address in the firmware, firewall rules, certificates and whether the app reconnected after the last network change.
Most of the time it's the APN, so check it's entered exactly as we gave it. Next, check on the platform that the SIM is active, has data left, and that the plan covers the country you're in. If those are fine, look at the network mode: a device set to LTE-M only won't connect where only regular 4G is offered. Reboot after any change. Still stuck? Send us the ICCID and we'll check the network logs.
The antenna fixes most cases. Use a proper external antenna rated for the device's bands, keep it outside metal enclosures, mount it higher and use short, good-quality cable. Check that the device isn't locked to a network type that's weak at that spot. A multi-network SIM also helps, because the device has another allowed network to fall back on. At rural sites, a directional antenna pointed at the nearest tower can make a huge difference.