Connect battery positive voltage to terminal A and ground to terminal B of the blower motor and verify its operation.

Blower motor removal/installation
Resistor removal/installationMazda 6 Service Manual: Driving Tips
WARNING
Do not let the vehicle move in a direction opposite to the direction selected
by the selector lever: Do not let the vehicle move backward with the selector
lever in a forward position, or do not let the vehicle move forward with the selector
lever in the reverse position. Otherwise, t ...
Mazda 6 Service Manual: Jam-safe Moonroof
If a person's hands, head or an object blocks the moonroof while it is closing,
the moonroof will stop and move in the reverse direction.
WARNING
Make sure nothing blocks the moonroof just before it reaches the fully closed
position: Blocking the moonroof just before it reaches the closed posi ...