It's likely that the ribbon cable is not properly connected to the hard drive.
Align the ribbon cable on the left side of the hard drives connector. After the ribbon cable is connected, there should be four rows of pins exposed on the right side of the hard drive connector.