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: Intermittent concern troubleshooting
Vibration Method
If malfunction occurs or becomes worse while driving on a rough road or
when engine is vibrating, perform the steps below.
Note
There are several reasons why vehicle or engine vibration could
cause an electrical malfunction. Some of the things to check for:
- ...
Mazda 6 Service Manual: Floor Mat
We recommend the use of Genuine Mazda floor mats.
WARNING
Make sure the floor mats are hooked on the retention pins to prevent them
from bunching up under the foot pedals: Using a floor mat that is not secured
is dangerous as it will interfere with the accelerator and brake pedal operation,
...