Flyback diode & motor confusion

You need a complete path for current to flow.
When the transistor turns off, this path is opened.
The motor spike, being large, can blow through the off transistor damaging it.

The diode acts as a complete path when the transistor is off, thus saving it from damage.
This diode circuit absorbs the spike energy.

Turning the motor around, has little effect on the generated voltage spike.
.