If you're trying to re-install, a very early step is to look for unused space on a HDD in which to create a new Partition for the installation. But your failed installation probably used up all the space. However, the Partition that exists is useless.
If you're re-installing, try doing this very early. Look in the Windows Install menus to find the place to Delete any Partition you find. Delete them all, one at a time, if there is more than one. THEN you can start from the empty disk state.
Now, IF you believe that the HDD has a hardware problem, you might want to do something else first. Either before or after Deleting any Partitions (after might be slightly better), don't re-install. If you can, go to the website of the HDD maker and download their free disk diagnostic utilities. I prefer the version that has you burn your own optical disk to boot from and run its tests. Use that to test the drive completely, noting down any results. If there are problems, the HDD maker's Tech Support guys will want to know the diagnostic test results before they will agree to a warranty replacement. But if there are no hardware problems, you'll be more confident in re-installing to the drive.