Why does my iPhone 5 keep saying it can't connect to the server?

I can turn the phone off and back on and it works fine.
It's difficult to tell what is causing your issue but if it continues I would suggest you plug into iTunes and do a full restore after performing a complete back up
Try Reset Network Settings
Reset Network Settings
Settings>General>Reset>Tap Reset Network Settings. You may need to enter your wifi passcode back in afterwards.
If network settings reset wont help, try full reset... Hold the Sleep/Wake button as well as the Home button down for about 10 seconds, or until you see the Apple logo appear on your screen.
What are you doing when it is telling you that? The server you are trying to get to could be having issues.

Original thread: https://forums.imore.com/threads/why-does-my-iphone-5-keep-saying-it-cant-connect-to-the-server.337788/