If you’re having problems with Windows Update, make sure you're connected to the Internet, and then download and run the Windows Update Troubleshooter for your version of Windows.
https://support.microsoft.com/en-us/help/4027322/windows-windows-update-troubleshooter
If you can read this you are connected to the Internet! :)