Does it connect to other networks?
- Power off and then back on the router
- Reset network settings: Settings>General>Reset>Reset Network Settings
- Restore from backup. See:
- Restore to factory settings/new iOS device.
If still problem make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.