Macbook Pro can't connect to internal hard drive even after changing the cable to the main circuit board
First step would be try the Apple Hardware Test or Apple Diagnostics, depending on whether your machine is pre or post 2013

Plug the machine into the mains power, boot then hold the  D  key until the test screen appears.