A. Ensure your device's network settings are correctly configured. Go to Settings > Network & Internet and check your Wi-Fi and mobile data settings.
B. Try resetting your network settings by going to Settings > System > Reset options > Reset Wi-Fi, mobile & Bluetooth. Note that this will remove all saved Wi-Fi networks and Bluetooth connections.