Cutting off

i have a 91 mazda mx6 2.2l the engine cuts off while driving i pull over and it will start up and run fine. any ideas.

Does the engine stop suddenly as thought the key was turned off?

OR, does it shudder and stop as though it ran out of fuel?

suddenly as thought the key is turned off