This is often caused by software issues on your computer. If you have access to a different computer running iTunes try using that one to do the restore. Otherwise, try uninstalling iTunes and re-installing, though if it's a different program running on your computer that's causing the problem this won't fix it.
Another cause of this issue is a hardware fault. Usually in that case it would be caused by a fault on the logic board, a very difficult repair.