Easy test of the battery is to jump it with a non-running car battery to have the crank and ignition power you need.
Then if everything works fine and you have charging voltage, get a new battery.
Then if everything works fine and you have charging voltage, get a new battery.