the most suspucius part is the SATA (or IDE) connector , check if they are healthy and if they were check for these:
check for the BIOS updates and see if that fixes the problem.
you may also need to change the CMOS battery ,
and of course there's a possibility that you forgot to save the...