1. Remove the climate control unit.
2. Inspect for continuity between the fan switch terminals using an ohmmeter.


Climate control unit inspection
Defroster switch inspectionMazda 6 Service Manual: Exterior lighting system
...
Mazda 6 Service Manual: Power Moonroof Reset Procedure
If the battery is disconnected, the moonroof will not operate. The moonroof will
not operate correctly until it is reset.
Carry out the following procedure to reset the moonroof and resume operation:
1. Switch the ignition ON.
2. Press the tilt switch, to partially tilt open the rear of the moo ...