Try to reset your network settings on your iPhone:
Settings>General>Reset>Reset Network Settings and it will restart your iPhone. Then set up your wifi again
If that doesnt work, try to restart your router by simply unplugging it from the wall for 30 seconds and plug back in and reconnect on your iPhone
If all else fails, try to restore your iPhone to factory settings and see if it works then.