First thing to try -
I think there may be some problem in your motherboard and hard-disk connection and that's why you are getting such type of problem. In this case just disconnect your computer from the power and then disconnect your hard-disk from your computer and then re-connect it again. After that plug your computer to the power and turn on your computer. You should find that this has resolved your problem.