Surging and stalling in Park or in Drive on 1990 Pontiac Grand Am

My car is actually a 1987 Pontiac 6000 LE. I was told it could be one of the following: Throttle Positioning Sensor, EGR, or Oxygen Sensor. Which one is most likely to cause this problem?

Asked by for the 1990 Pontiac Grand Am
try map sensor