@Alexnadros
If a ribbon cable gets forcefully pulled out, that can damage the socket so the when you reconnect, it no longer works properly. This sounds like what happened to yours and unfortunately, we have no diagnostics we can provide you that you could use to check this out.
I don't know that anyone else can do this, either -- but you can see if a local PC repair place can look at it. But if the socket is damaged, HP does not sell motherboard parts, so there will really be no way you can replace it.
I am a volunteer and I do not work for, nor represent, HP