Causes can range from spark plug issues, fuel system problems, vacuum leaks, to problems with the engine’s sensors or valves.