Your electric scooter turns off while riding because your scooter's circuit breaker is tripped. You can check the circuit breaker and see if anything needs to be fixed.