What is the difference between a sump pump and ejector pump?

My crawlspace has flooded (probably due to heavy rain and/or leak in the foundation). I was asked if I had a sump pump. I know that I have an ejector pump but it does not appear that I have a sump pump. What is the difference between the two? What is each's purpose. Should homes have both?