Most flooded basements can be prevented by installing a good sump pump. It is important to check it at least once per year. It is also a good idea to ask your insurance agent for a sump pump rider to your home owner policy. It usually costs $100 to $200 per year but will save you thousands if you have a flood that is not a covered peril.
If you have a flooded basement the first thing you should do is to find the water source. If it is from a broken pipe you will need to fix it asap. Most flooded basements are covered by your homeowners policy. You should find it and read to see if you have coverage and how much. The next thing you should do is call PDQ Restoration to come out for a free estimate and they will give you advice from there.