I've had that twice before, one internal drive & one external.
Internal, the drive was cactus, threw it out.
External, the controller PCB had lifted tracks, fixed with some soldering.
I figure, as stated above, it could also just be the cable, but I reckon it's probably not anything on the motherboard. Easier for a drive with working parts & such to get worn out, etc.
PZ.