cut off while driving on 1993 Mercury Tracer

i was driving my car and it cut off. it has fuel and spark and i can hear the fuel pump prime. i have checked all the fuses inside the car and under the a side note it was raining hard.please give me some insight.

Asked by for the 1993 Mercury Tracer
Does it run when the weather is dry? I'm thinking that the ignition system got soaked in the rain and shorted out the sparkplug wires. If your wires are old, they could short when wet. If the car runs OK now, try spraying the wires with water and see of there's any diffennce in how it runs. If so, you may need new wires, especially if they're old.