If your drive is less than 3 years old just call the manufacturer and get a warranty replacement...if it came as a part of an OEM system then call them (assuming the PC is under warranty of course). If the PC is out of warranty but the drive is notthen call the mfr anyway...WD would not replace a drive out of a Compaq machine I took care of once because that part number was turned over to Compaq as an OEM device, thus making it Compaq's problem, not WD's; but both Maxtor and Seagate replaced drives for me, also out of Compaqs that had expired system warranties.
Basically your drive is dead/dying. Since you're in the process of formatting I'm going to assume there isn't any information on there you wanted anymore.
If its out of warranty toss it in the trash (or take it apart because its cool to look inside new things) and buy a new drive...if its old enough to be out of warranty I guarantee you can get something thats 5x greater capacity and pushes data faster than the old one. Check out www.spoofee.com for their daily specials...there's usually at least one HDD deal a week...like 120gb 7200rpm drives for $50.