wrong
The cam sensor and the crank sensor are not connected
There is no MAP sensor
Crankshaft sensor is used for starting (crank trigger)
Camshaft sensor is used for timing (cam timing)
MAP sensor is Manifold Absolute Pressure, a MAP sensor is fed by a vacuum line
The last year of a MAP sensor in these trucks was the 2.9L engine in 1990
The 4.0 OHV or SOHC NEVER had a map sensor
171 and 174 are air leaks, it means lean both banks
This means the computer has noticed a lean condition it cannot dump enough fuel to correct. It has seen it enough times/enough drive cycles to set the code. Usually (like 99% of the time) this is air entering the intake manifold that was not metered or measured by the mass air flow sensor (un metered air)
un metered air entering the system after the MAS sensor (mas air flow sensor) and before the 02 sensors............ on the 4.0 V6 engine it is almost always intake gasket O rings, as stated earlier in this SOLVED thread from 2013 (9 years ago)
The other possible cause would be a large air leak in the intake tube, EGR system, or a large crack in the intake. Air entering the intake that was not accounted for.
By swapping the crank, cam and I assume MAS sensors you likely fixed a large air leak in your intake tube OR the codes will return
I hope this helps! This is like the 3rd 10+ year old thread regarding 171 and 174 codes you have revived