Read what the machine reports
The battery report shows the charge level, the design capacity and whether the machine sees mains power. A laptop that reports plugged in but not charging is a different fault from one that sees no power at all.
powercfg /batteryreport