Try restoring it on another computer.
Seems like your computer has issues communicating with apples servers. It could be an itunes issue or hosts file issue or something blocking the particular port communication like firewall, antivirus or other software installed.