iCloud login and software updates

Hello! I’ve been trying to log in to my iCloud account, but I haven’t been able to access it. A message pops up saying, 'Couldn’t communicate with the server.' Additionally, I can’t update my phone to the latest iOS version. Please, how can I resolve this?

iCloud login and software updates
 
 
Q