Controller-motor matching centers on voltage, rated and peak current, phase angle and hall angle. The controller's rated voltage must match the battery platform. Too low a current limit leaves poor climbing ability; too high a limit makes the motor and wiring more prone to overheating.
Phase and hall sequences must be correct. After wiring, lift the wheel and run an unloaded test to check rotation direction, no-load current and noise. If rotation is reversed, swap phase wires or use the learning wire, but do not repeatedly test under load. Poor phase-wire contact causes phase loss, juddering and controller failure.
Also check connectors, fuses, battery cable gauge and grounding. Mount the controller in a ventilated, water-resistant location away from mud and standing water. When replacing a controller, prioritize a model matched to the original motor's voltage, power and hall type.