Clean the IAC valve. Clean the Throttle Body. Test the EGR valve.
TB cleaning
http://www.contour.org/ubbthreads/showflat.php?Cat=&Board=trouble&Number=920243&Forum=trouble&Words=p0401&Match=Entire%20Phrase&Searchpage=0&Limit=25&Old=allposts&Main=919728&Search=true#Post920243
Edit. EGR test.
Modified test for EGR (per Ray and Steve):
(remove the green vacuum hose from the top, be careful as it is brittle, and apply a vacuum (attached a small hose and suck on itl) to see if the car stumbles while running. This indicates a properly operating EGR.
Does it work properly?
NO: The EGR valve is defective or the EGR passages are clogged. Check (and clean, if needed) the passages behind the Throttle Body. Purchase a TB gasket, and remove the air plenum (rubber accordion tube) then remove the TB. Clean the EGR passage (small cut-out in the outer edge of the TB's mating surface) really well, install a new gasket and re-attach the TB. If the passages are clear, the EGR valve is defective. While rare, they do fail.
YES: The EGR valve works and the passages are clear. The likely fault is the DPFE sensor or its sample hoses, followed by the EVR solenoid or the PCM. May also be caused by interconnecting vacuum lines or electrical connections.
IAC cleaning
from Ray's UIM/LIM how to in Duratec Maintenance how to.
"Replacing the IAC gasket:
(From IAC faq)
Over time, the IAC (Idle Air Control) valve becomes sticky due to buildup from the EGR and PCV systems. It can stick partially open such that idle quality is adversely affected, and engine RPM's will not drop below 1500. For a while, blipping the throttle will restore normal idle, but this only works for so long.
The fix is to remove the IAC valve by unbolting the two 8mm bolts that hold it on and disconnected the wiring plug. If you are careful enough, replacement of the gasket will not be necessary. The gasket costs less than US $1.00, so it is no tragedy if you destroy it. Once the valve is off, spray it out with some carb/intake cleaner and make sure any gunky residue is gone. Reattach, and you are done. It is a lot cheaper than a new IAC, which runs around US $70. Note: Ford claims the IAC cannot be cleaned, but this is not true in my experience." Ray.