If the air that the engine requires to run is blocked, especially sporadically, it can cause the engine to slow down. When the blockage moves or clears, the engine may suddenly rev up in response. To fix this type of problem, check the air filter to ensure that it's not clogged with dirt and debris.