Help! My car dies while driving and won't start!

It is hard to understand the symptoms as you’ve written them. The car died while you were driving. When you went to restart it what happened? The starting motor worked, or not? The starting motor sounded normal and the car was cranking normally, but didn’t start? You get a clicking sound but no action from the starting motor? You get no action from the battery, lights work?

You could have a bad alternator and your battery has run down to a point your car won’t run. The crank position sensor could be bad. The motor could be seized up completely. Can’t really tell whats wrong without hearing more details from OP on this one.