Bad / damaged, dirty, corroded connections to the battery can reduce the battery output or prevent the battery from receiving a charge.

Check that all connections are clean, tight, free or corrosion & damage.