iPhone 5 not signing into iCloud
I recently factory reset my iPhone 5 (which I am using as a second phone with no sim) running iOS 10.3.4, and I managed to sign into my Apple ID via the App Store, but when I went into settings to log into my iCloud account, it lets me put in my password, then goes onto a loading screen, but then it shows two error messages: Verification Failed, there was an error connecting to iCloud, and Could Not Sign In, there was an error connecting to iCloud.
Any help would be greatly appreciated
iPhone 5, iOS 10