If the selector lever will not move from P using the proper shift procedure, continue to hold down the brake pedal.

Take the vehicle to an Authorized Mazda Dealer to have the system checked.
Shift-Lock System
Manual Shift ModeOn/Off Solenoid Removal/Installation [Fw6 A EL]
WARNING:
A hot transaxle and ATF can cause severe burns. Turn off the engine and wait
until they are cool.
Always wear protective eye wear when using the air compressor. If the air
compressor is used, any particles of dirt or soiling could spatter and get into
the eyes.
...
Rear Door Glass Removal/Installation
1. Fully lower the rear door glass.
2. Disconnect the negative battery cable..
3. Remove the rear door trim..
4. Remove the rear door speaker..
5. Remove the rear power window motor..
6. Remove the service hole cover.
7. Remove the rear door glass guide..
8. Remove the rear door qu ...
Windshield Wiper Motor Removal/Installation
1. Disconnect the negative battery cable..
2. Remove the following parts:
a. Windshield wiper arm and blade.
b. Front fender molding.
c. Cowl grille.
d. Center cowl grille No1, No2
3. Stick masking tape on the figure.
CAUTION:
If the front wiper motor is removed without affixin ...