Could be your MAP sensor or Absolute Manifold Pressure sensor same thing usually mounted on or near the firewall and has at least two hoses"vacuum" going into it.
Stalling at idle? Immediately after starting? While driving? While stopping? Cold or hot engine? What engine do you have?
It might be a broken motor mount or transmission mount.
More than likely the transmission has gone into overdrive.
throttle postioning sensor is bad
A vacuum leak could cause that. The year, make and engine info would help us help you.
On a 1994 Buick LaSabre why does the engine continue to rev up while driving even when the brake is applied ? or when driving why doesn't the engine return to idle when the brake is applied? I would check for a vacuum leak
A 350 engine will idle good but cut out and run rough while driving if there is a vacuum leak. This causes too much air to enter the engine under load.
Your check engine light will be on and you will feel bucking or jerking while you are accelerating. You will also have an idle surging, sudden stalling of the engine, and a sudden surge in speed while driving on the highway.
Idle Air Control Motor malfunctioning.
There are several reasons for this behavior in virtually all water-cooled vehicles...Less air passes through the radiator while sitting at idle.Ambient engine heat is trapped under the hood with no fresh air to force it out.Mechanical water pumps pump slower at idle.
When the car is at idle, the air conditioner works just as hard as when the car is moving. When the car moves, the engine gets very hot. so the air conditioning works better when your at idle because it doesn't have to cool the heat from the engine.
The idle speed control solenoid controls the idle of the engine when the air conditioning is engaged. Since the ac pump draws down the engine idle the solenoid increase the idle when the ac is on.