What is the difference between an alternator and a distributor used in cars?

I'm not a mechanic, but basically... A distributor sends electricity to the spark plugs so they can fire and push the pistons. An alternator takes the mechanical energy from the running motor and uses it to recharge the battery.