how old is the battery, it could be time for a replacement.
When the car dies on you, watch the tach, and see if it drops just before the engine dies. If so, it could be your crank sensor, just a guess.
Or, when was the last time you cleaned your throttle body, once they get real dirty, you could run into a stalling problem at idle.