Engine died while crossing RR tracks

Make sure the distributor plug is clean and tight.
I have had more than one car do that because that plug expanding and contracting from the intermittent hot and cold.
One would start every morning like clockwork, then die after running and not start till it cooled down again.
The other one was exactly the opposite (started fine later in the day when it was warmer under the hood but not first thing in the morning)

It was that connector on both of them.