The biggest danger in a flooded piece of equipment is electrical shock. I am assuming you have it safely unplugged, correct?
Take a look at the pump. You should see some screws on it somewhere. Open it up and set it open to dry really well inside and outside. Once fully dry - it may take a day or two - you can try reassembling it and trying it again. THere are more ways to test it and to fix it, but they can get rather complicated, so I suggest if this does not work, I would not use it.
IF you do not have a check valve on your air pumps, it is at least a wise idea to put in a "drip loop". This works to keep water from running down an electrical cord and shorting out a plug as well as, in many cases, from flooding an air pump. A drip loop that places a portion of the cord at anyplace lower than the plug is adequate for water running down an elecrrical cord. Placing your air pump higher than the water surface (on a shelf behind the tank or some such) creates a "drip loop" for the air hose.
I am sorry. Power outages are a horrid fear of mine. They can be really expensive to remedy after they are over.