My iphone cannot be restored. It says error 21.
This is usually a bad hardware error. Could be due to faulty battery.
However, here are Apple steps for Error 21.
Install TinyUmbrella and UNCHECK 'set hosts to cydia' in the advanced tab then restore it using iTunes.
Retrieving data ...