A P0171 code on a Ford indicates a "
System Too Lean" condition on Bank 1, meaning the engine is receiving too much air or not enough fuel. Common causes include vacuum leaks, a dirty or faulty
Mass Airflow (MAF) sensor, or a failing fuel pump. Key diagnostic steps include checking for vacuum leaks, cleaning the MAF sensor, and checking fuel pressure.
This video explains the causes and symptoms of the P0171 code:
Check for loose or cracked hoses, and clean your MAF sensor.