How does a flyback diode work?
Diode was probably inserted backwards around the motor - the purpose of the diode is to bleed a current spike from the motor's inductance, which flows opposite direction.

The diode has a line/bar that indicates the cathode - this side needs to be connected to + side of the motor.

You might need to replace the darlington and diode, unfortunately.