Is there is some connection failure. It could mean a motherboard or other part. Get estimates.
It's not software. I've seen folk reload OSes, format drives and lose a lot of money in repair tackling what it is not.
Help, when i bend my laptop mobo or case the pc works fine until i move my arm away where i bended, rams tested works, because when i got this laptop i had to change the rams, changed the keyboard, no battery.