Your vehicle's electrical system is protected by fuses.
If any lights, accessories, or controls do not work, inspect the appropriate circuit protector. If a fuse has blown, the inside element will be melted.
If the same fuse blows again, avoid using that system and consult an Authorized Mazda Dealer as soon as possible.