Hello and Welcome to Justanswer, My name is XXXXX XXX I am here to try and assist your with your question
A car battery should last around 5 years
Most battery are warranted for five years
If the battery is dead then preform a trickle charge for 24 hours and if it still will not start the car then have it replaced under warranty were you bought it.
It is possible for a battery to go dead when not in use for a year but the trickle charge should bring it back to life.