The thin wires exiting the Bladez XTR motor are for its motor temperature sensor and can be left disconnected when installing a new controller.
When a scooter drives a short distance and then shuts down the most common reason is a faulty battery pack. The battery pack Voltage can be checked under load to verify if it is causing the problem. Here is a link to our battery pack load testing guide: https://electricscooterparts.com/loadtest
Some Bladez XTR scooters have automatic resetting circuit breakers which could also be causing the problem. If this is the problem then replacing the circuit breaker should solve it. We carry self-resetting circuit breakers and other parts for the Bladez XTR electric scooter on this page: https://electricscooterparts.com/bladezxtr450electricscooterparts.html
Another possibility is that the motor has burned out coil windings which is causing it to demand too much current from the controller and consequentially causing the circuit breaker to trip. This is the least likely scenario. If the motor smells like burned electronics though then it is more likely to be the problem though.