Hi,
Try placing the motor in front of a large fan and letting it sit there for a few hours. That should dry it out. If nothing burnt out it will work again. If not, you'll just have to get another motor or another filter.
You can get away without the filter for a while, but you can still aerate the tank with one of those little air stones.
If it is a salt water tank i'd run out and get another filter right now though. If you get the old one working again at least then you'll have a backup for next time this happens.