Well, does the laptop work with just the charger cord? And will the battery charge if the laptop is off?
If both of these is 'yes' then it is probably your charger cord. While it may not seem damaged, it still can be. This can cause it to not be putting out enough power to both run the laptop and charge the battery.
I would suggest trying another charger cord and see if that resolves your problem.