Open up the case, reseat the cables on the hard drive.
If that does not work, swap cable connections on the motherboard.
If that does not work, replace the cable.
If that does not work, replace the hard drive or the motherboard, your pick. Maybe need to do both. To rule out the motherboard you can plug in the CD drive into the port the drive is on and see if that is picked up.