Stan, if the bike has a pedal sensor as well as a throttle, and both don't work, then it's highly likely to be a controller or motor issue.
You've already tested the battery and you say you have lights on the handlebar display. Time to look at the areas of the controller and motor.
If the...