Drop something into engine, piece of gasket under valve, crossed plug wires, very lean? Does it run smooth for those 5 seconds if not, check vacuum, broken valve spring, ect.
Even if there is excessive fuel it will need spark from somewhere. What else [if anything] was touched/done/ moved...