If you have trouble connecting to a Wi-Fi network, follow this method to reset network settings.
Open Settings, select General > Transfer or Reset iPhone, then tap Reset, then Reset Network Settings. Phew!
Return to Settings, then Wi-Fi and rejoin your chosen network. Note, you’ll need to enter the password again if it uses one.