Is it a new PC with old HDD or new HDD too along with the PC ? If by any chance the HDD was from an old PC then you have to repair install the OS.
Or check your RAM : http://www.memtest.org/
Or, update the BIOS. And double check the connections of components and wiring.