It’s possible you may need to replace the battery. If you have it plugged in and it shows it’s not charging it may also be the power cord. That would be cheaper to replace. The best I have gotten out of a laptop battery myself is about 5 years before having to replace it. My clue was even after sitting at the desk for hours plugged in, 3 days later it would not start without being plugged in. Another warning sign i believe is the power cord got very hot to the touch when try to charge the battery.