How old is your battery? It may need replacing.
If the battery is fairly new, I would try:
# Making sure that the charging cord is secure in the laptop, outlet, and the adapter box in middle of the cord.
# Plugging the laptop into a different outlet.
# Trying a different charging cord for the laptop.
# Replacing the DC connector port where the charging cord plugs into the laptop.