If it's a lead acid battery, don't forget to check the water level in it. Top it off if necessary and then charge it. You might be able to save it.
The battery in my lawn tractor went dead a few years ago. After adding distilled water to each cell and fully charging it, it's been going...