May need better pics to identify them. The second two pictures look like grounds that attach to the driver's side of the cylinder head to a bracket. First picture doesn't look like an OEM sensor for a Mazda. Did the car have a standalone EMS?
The second pic the connectors go to the fuse box. Not sure about the first and third pic.
The wire with the plastic cover over the terminal in the second picture appears to be the plug for the pressure sensor on the power steering pump, the loom on the wires isn't factory though so it's hard to tell where the wires should be. That wire should run to the passenger side and plug into the pump, not the driver's side near the battery.