A faulty alternator or a low fuel pressure caused by a faulty fuel pump is probably the reason for your car shutting off while it is driving. This is because it is not starting again. There are, however, many possible causes for it, which is why a diagnostic scanner must be used to diagnose it.