If Wifi works normally on other devices but your phone, it's greatly possible that there's something wrong with your phone itself or its WiFi adapter. Try to restart your phone or reset the network settings.