Have you checked for engine codes? I'm reluctant to say fuel pump if shutting it off then turning it back on makes it run fine. Does the check engine light ever come on? I would go around to every connectoryou can find in the engine compartment and un plug them then plug them clean them out and plug them back in.