A bad battery could cause this, but the first things to check are the easiest to fix.
# Adapter does not have a high enough current rating or is defective and can't supply the current or voltage. Try another adapter.
# The cable is defective or of very low quality. Therefore it cannot pass the required current without a voltage drop. Try a different cable.
# Do a battery test on your phone to see if it has enough life left.