If the battery isn't the cause of the problem, it will almost certainly mean that it's the motor which is faulty, and that can't be repaired. I know that my battery is on borrowed time, so a new motor and battery is going to be in the region of £1000.
I don't think the bike is worth spending...