It is a Ford Ranger 1997 3.0.
. Replace the spark plugs, if they haven't been changed recently. . Replace the Ignition Control Module (ICM), if the problem persists.