Booting ERROR (boots from xternal)

the device boots fine from the external HDD,yet when i use the cable on mother board starts giving question mark/prohibitory and apple logo(keeps cycling over those three signs.

device reads the HDD repair says fine verified already put new OS done,reset vram done.

almost done every thing .

changed 2 cables TBH one reads but gives question mark the other one gives this sign,original also gives the question mark and no HDD comes up in disk utilities

Update (02/24/2019)

Okay guys the problem was fixed :

its was the HDD cable+os recovery corrupted

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0

crwdns2944067:02crwdne2944067:0:

What cables are you talking about? The Retina uses a flash drive.

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

What is you exact model? Do you really have the older Unibody system not a retina model.

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

crwdns2934285:0crwdne2934285:0