Why would your car stop while driving?

A faulty fuel pump could do that or a faulty timing belt (if equipped) could also do that. If it is a Ford, it could be the ignition module too.