Not much to go on, as far as info. As a tech, you know more info is needed. Make and model of bike? DOes it have throttle or pedal assist only.
What's the failure? Bike shuts off. Display goes dead? Does the bike retstart after a minute? When it fails, can you lift the wheel and run it on throttle? What's the voltage on the battery after it's charged?