For me it's always been either the contacts or the cables.
Contacts are easy to fix. Cables not so much. If you find it's the cables and you have a car quest around you. Can get just the regulator without the motor. They are very reasonable and are Mazda OEM parts. Actually have Mazda sitckers on the bag.