Austin, have you tried taking the battery out and putting it back in?
Also, the battery designs have a flaw where they can get overcharged and that the longer you leave it plugged in when it is fully charged, the faster it will drain when not plugged in.
I had that happen with an 18v lithium battery for a Craftsman weedeater-- I left it charging too long and now the battery barely lasts 2 min when I try to run the weedeater. Pisses me off bc the battery costs about $60.
HP tech support told me that when you get a laptop battery you should charge it to full and then let the battery drain completely and then charge it again, but to not keep it plugged in all the time as it diminishes the life of the battery.
You would think they would/could design something to prevent that from happening, but it is likely part of planned obsolescence so they can get people to buy new batteries and eventually new computers (as some people just buy a new computer instead of replacing the battery).
So either the battery needs to be replaced OR you need to take it out and put it back in. I had to take mine out and put it back in before.
Now, its not always the battery. Sometimes it is the cord. Laptops have that little rectangular box on the cord and it can overheat-- in some cases those have overheated to the point of setting things on fire and burning houses down. There are some newer cords that don't get that hot now so they won't start fires. Sometimes if those boxes get hot enough, they stop working and the cord has to be replaced (usually the part with the box). If the box overheated and fried then it won't send power to the laptop.
I've had that happen before.
(I took electronics in high school and Electronic Engineering in college, but we were taking apart 486s and not the modern stuff).