I suggest going into the modem/router settings and make 'sure' of the password you have set for the WiFi. Then change the other back to what it was before you changed it to 4. It is possible that your phone has issues with connecting after that.
Also, make sure you 'forget' the WiFi on the phone, restart the phone (turn it off and back on) and then see if you can connect.