You didn't give me any details, like engine type and size, transmission type, or much about what the gauge does when it's warming up from cold, or in conditions like idling in traffic and running down the open road.
I'll assume that you've checked the coolant level and it's OK.
If it tends to be normal when on open road, but gets hot at ldle, I'd thnk first that the electric cooling fans for the radiator aren't operating. That could be caused by a blown fuse, a failed relay or worn out fan motors.
If it gets hot on open road and then suddenly cools off, then I think of a failing thermostat. I'd recommend a Mazda specialist, here's a directory link for you:
http://repairpal.com/directory?address=23224&car_bran...