If you don't have experience testing and repairing batteries and other electrical/electronic stuff, the *best* way to fix it is to replace the battery pack as a whole with the same kind as the original. (batteries can catch fire if handled incorrectly, or shorted, etc).
Depending on the system, you might have to get that from the scooter manufacturer. We can't help with that since you haven't provided any information on the system, battery, charger, scooter, etc.