For Sata Cable connector all you have to do is reinsert the cables from motherboard to hard disk drive. If it still doesn’t work just try to replace the cable with a new one .
Another Possible culprit is the power supply can’t provide enough power to the device, you may also try to check the disk drive to another computer and see if it can be detected. The last one, the disk drive is defective. Just replace with a new one.