You can purchase a bird bath heater. I prefer the type that has a thermostat so it turns off and on when needed. I use them for my birdbaths. I prefer this flat type.
Here's another model.
If your leaky birdbath has a crack you could use a marine silicone caulk.