You should test for headgasket leak, check for vacuum leaks in the engine bay (is there a hissing sound?), clean the MAF and check/change the Bank 2 lower O2 sensor, and go from there. You can worry about the IMRC later. And do you have an exhaust leak?
Edit.
The el cheapo headgasket test.
Fill antifreeze to the brim on recovery tank (leave cap off). Remove all spark plug wires. Remove all but one spark plug and have someone crank the engine. If the antifreeze bubbles over, there is leak from that portion of the engine (or cylinder). If not, go to the next cylinder, and then the next.... Note, it could be more than one area or more than one cylinder. Good luck.
From TSB,
P0171 - System Too Lean (Bank 1) The Adaptive Fuel Strategy continuously monitors fuel delivery hardware. The code is set when the adaptive fuel tables reach a rich calibrated limit.
Fuel System:
�· Contaminated fuel injectors
�· Low fuel pressure or running out of fuel (fuel pump, filter, fuel supply line restrictions)
�· Vapor recovery system (VMV)
Induction System:
�· MAF contamination
�· Air leaks between the MAF and throttle body
�· Vacuum leaks
�· PCV system concern
�· Improperly seated engine oil dipstick
EGR System:
�· Leaking gasket
�· Stuck EGR valve
�· Leaking diaphragm or EVR
Base Engine:
�· Exhaust leaks before or near the HO2S
�· Secondary air concern
Powertrain Control System:
�· PCM concern
MAF sensor
http://www.contour.org/mods/mods.php?s=howto&displayid=36
and
http://www.contour.org/ubbthreads/showflat.php?Cat=&Board=zetecmaint&Number=989728&page=&view=&sb=5&o=&fpart=1&vc=1
and
http://www.autozone.com/servlet/UiBroker?ForwardPage=/az/cds/en_us/0900823d/80/1b/cb/25/0900823d801bcb25.jsp
From TSB,
P0156 - HO2S Sensor Circuit Malfunction (HO2S-22). The Bank 2 (radiator side) downstream HO2S sensor(s) are continuously checked for maximum and minimum voltages. The code will set when the voltages fail to meet the calibrated limits.
�· Disconnected sensor
�· Pinched, shorted, corroded wiring or pins
�· Crossed sensor wires
�· Exhaust leaks
�· Contaminated or damaged sensor
�· Chafed/damaged wiring
Bank 2 Lower O2 sensor;
On this 2-Dimensional picture, ignore the red box and arrow, the Bank 2 Lower is the sensor on the right of the pre-cat. The arrow is pointing to the Bank 2 pre-cat
Originally posted by chongo: