Can't restore nor update iPhone 4S
Error 4013 is a disconnect or repair / service / timing issue. 


https://support.apple.com/en-us/ht201444


The steps there are pretty short to do for the things you can control so it might be as simple as an update to iTunes or a force restart of the phone.