Two possibilities, Mike2002.
1. A loose hard drive cable, IDE ribbon cable or power cable, Sata Data or power cable.
2. A failing hard drive.
For 1. Check your cables, make sure they are all seated correctly.
For 2. Make sure you have all your important files backed up and be prepared for the drive failing.