Car acceleration problem and idle problem. The car is a 2003 Ford Taurus?

. When the car is running and in parked its making a loud consisted rev noise. However the rpm needle thingy is not moving.

when i'm in drive the car acclerates on its own with the speed ever increasing.

i did some googling and learned that it can be the TPS sensor or the idle air intake valve, among a million other possiblities.

These cars had a big problem with the IAC valve and Ford changed the design. The loud noise was a big indicator.