Plug the charger in without the battery. Use a volt meter to see if theres a voltage coming out of the charger. Leave the voltmeter connected for a while to see if the charger shuts off. If it shows voltage and doesn't turn off its the battery.
If the battery or charger is bad , you need choose...