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: Dual proportioning valve replacement (without abs)
1. Remove in the order indicated in the table.
2. Install in the reverse order of removal.
Dual Proportioning Valve Installation Note
Install the dual proportioning valve so that the R mark faces the left side
of the vehicle.
...
Mazda 6 Service Manual: Illuminated Entry System
When the illuminated entry system operates, the overhead lights, the courtesy
lights, and an ambient light* turn on in the following conditions:
The driver's door is unlocked after the ignition is switched OFF.
The ignition is switched OFF with all doors closed.
NOTE
(Overhead lights) ...