I am assuming the laptop was on when doing this? If so, try charging it when it is off. If it charges then, it could be a problem with the charger. Then the charger would need to be replaced.
If charging it while it is off doesn't change it, and it doesn't charge the battery, then you may well need to replace the battery.