Laptop suddenly shutdown after 1 minute I need help

Hi, I have a problem with a dell vostro 1520 laptop. When it turns on and 1-2 minutes pass, it suddenly turns off. I thought it was overheating, so I changed the thermal paste, but it's still the same, i thougt its battery and i replaced it but its same and when the charger is plugged laptop only turn on when battery is IN laptop and i reset bios through motherboard battery and still same. if someone have any solution i will try
crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0

crwdns2942205:01crwdne2942205:0:

Sounds like the charger may be defective if the laptop does not work with just the charger plugged in.

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

crwdns2934285:0crwdne2934285:0