How many miles are on the car?
When you say not shifting, what gear? Can you pop it into 2 or 3 and see if it shifts between gears or does it only occur in Drive
Who was the previous owner and did he beat on it?
Since it's an auto tranny check to see what kind of color the fluid is, is it dirty? is it excessively dirty?