Android Won't Connect to the Internet: Fixes in Order
Restart, switch between Wi-Fi and mobile data, toggle airplane mode, then restart the router. Based on Android Help.
Restart, switch between Wi-Fi and mobile data, toggle airplane mode, then restart the router. Based on Android Help.
If apps or web pages will not load on an Android phone, Google's Android Help lists steps in a sensible order. This guide follows that page.

Turn Mobile data or Cellular data on, or off and on again. Look for a data indicator such as 4G or H beside the signal bars. It may not show while Wi-Fi is active, so turn Wi-Fi off to check. No indicator may mean no coverage: move or go outside. If it happens often, contact your mobile provider.
Turn Airplane mode on, wait 10 seconds, turn it off, and test again.
Make sure Wi-Fi is on and the indicator shows bars. If there are none, you may be out of range, so move closer to the router.
Unplug the router, make sure the lights go out, wait 30 seconds, plug it back in and wait 30 seconds for the lights. If problems continue, contact your internet provider or the host of the Wi-Fi network.
Google Play is stuck on "Loading..." at home. Test mobile data with Wi-Fi off. If it loads, the phone is fine and the problem is Wi-Fi or the router: restart the router, then see Wi-Fi slow in one room if it is only weak in one spot. If it fails on both, try Airplane mode and a restart. Persisting on both points to your mobile provider. Public hotspots add their own risks, see is public Wi-Fi safe.