If you faced this type of problem then follow this steps-
1- Click the start button and go to the control panel
2- Select system and security and then select windows update
3- On the left pane select the option that reads “Update History”, this will show all the updates and those that have failed, along with the error code.
check the services related to the windows update are started and set to automatic on the computer. follow this steps
1- Click the start button, and then, in the Search box, type services.msc, and then press enter.
2- In-service list, look for the below-mentioned services and make sure that service is started and set automatic
Otherwise, Try installing each update manually and check.
and please run the network dignostic tool incase of internet failure.