Iphone 5 suddenly stopped connecting to network
Try this...


Put your iPhone in AirPlane Mode
Go to Settings > General > Reset
Reset Network Settings
Reboot your Router
Take you iPhone out of AirPlane mode..


You will be prompted to join your network again, and it should work this time...