have you tried restarting your modem and router? if that doesn't work try resetting your network settings on your cell phone. also, resetting your network settings on your phone will erase any known Wi-Fi information or connected Bluetooth devices and you'll need to reconnect them
Please follow all community guidelines before posting
I have tried all that. My phone connects to the wifi network, but cannot connect to websites or download data while connected to wifi. It can connect to al wifi networks. It just suddenly happened. The day it happened I was browsing tge internet and fell asleep. when I woke up I could not load any web pages.