I'm not familiar with your bike so can only speak generally. But an ebike is 3 basic components, the motor, its battery, and its controller +i/o(display-buttons-sensors) on a bike.
So as always starting with the battery, crack its case and confirm all connections are solid. sounds like you...