Replace the battery. If the button cell battery in the key fob of Mazda3 is replaced incorrectly or a battery is unsuitable, it can damage the vehicle key. Only replace drained batteries with new batteries in the same voltage, size, and specification. Make sure the battery is facing in the right direction when inserting it.
How to disassemble and replace the battery on a Mazda key fob. A battery replacement is required when you find the range becoming shorter on your remote, you
Next, if you know the battery is in good shape and has plenty of juice, the next issue could be that the brake switch sensor is bad. These are known to be problematic on these 2014-2015 Mazdas. If this sensor is shot, you will not be able to start the car as it won't recognize that you are stepping on the brake pedal.