Batteries are degradable and over time will lose the ability to charge up, or hold a charge. A battery left idle for too long without being used can degrade so much that it no longer works. However, the problem could be as simple as a cable being loose on the battery connection, and reconnecting the battery should solve the problem