Pavilion 17-g121wm My laptop doesn't stay on

I've been having trouble with my laptop for some reason to power just cuts off out of random and I tried everything even getting a new battery and charging cable I can't even a bios diagnostic because the power cuts before it's finish

It will really help if someone could help me out

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

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0