Unknown error 21 occurs on restoring / updating iPhone 5.

I have an Apple iPhone 5 that has iOS 7 in it. Last night the phone automatically reset itself and wouldn't turn on. I plugged it into the computer and the connect to iTunes screen appeared. I connected it and tried to restore my iPhone but an unknown error 21 occurred. I tried it on different laptops but to no use. How can I fix this? Can I update my iPhone directly?
