ingeneral a laptop has a cable that connect from the motherboard to the hdd. In the picture I've separeted into three parts that cable. a,b and c.
A - connection to HDD
B - the bodie (the cable itself)
C - connection to the motherboard.
if any of A,B or C fails, the whole cable fails.
you can find online replacement parts and order one made for your laptop.
***the cable is a separate bodie from the motherboard if you have broke the connection ON the motherboard, then mabie you ave to find alternatives to your conection ex. mSATA HDD Link form iFixit