What would cause an 89 Tracer to suddenly quit It has spark and fuel it cranks but won't start It started running rough for about ten seconds long enough to stop then quit running?

When my 89 Tracer started doing the same thing, it had fuel made sure of that knew there were no other problems since I keep it good shape. The only thing I could think of was first the fuel pump, since I had just changed my sparks, wires and cap. I got my car home got a fuel pump changed it out and within in seconds my baby was up and going again. Try that first then try the sparks etc...