I don't know the specifications of the Yamaha bike but the battery is not the main problem as it is clearly capable of powering the current motor (albeit total capacity might have reduced). I suspect the maximum torque from the motor is low and inadequate, especially on this old model of e-bike...