Try running a test on the battery by following the instructions here: https
/fossbytes.com/powercfg-check-battery-capacity-battery-health-report-windows-using-cmd/
The option above will work with Windows 7, 8, and 10.
For Windows XP, Vista, 7, 8, and 10
http/www.nirsoft.net/utils/battery_information_view.html
Other options...
Generally if your battery will not hold a charge -- the battery has gone bad. It could be the charger as well. Try removing the battery, plugging in the charger, and turning on laptop. See if the laptop shuts off. If it doesn't, then we could narrow it down to the battery. Check if the battery has any 'bulges'/'swelling' as well.