Slide down the screen, click in the WiFi setting and all it does is keep flashing and never connects to any WiFi
I suggest that you check if other phone are connected to the network. Make sure you have the right password (if required) and there's no MAC filtering.