Hello,
I believe you have one of two faults:
1. The motherboard has a power issue.
2. The charger pin connector is faulty.
You can attempt to leave the battery out of the laptop for a long period. If all else fails you may have to take it to a repair shop.