Test the power cord to see if it is good. Either try your cord in another device, or try another devices cord in your laptop.
Should that not be the problem, then check the battery to see if it needs replacing. They don't last forever.
NOTE: While the battery may be complicated to get to, it should be replaceable.