the over head valve engines had problems with cracking heads when overheated, if you do headgaskets make sure you have them checked out. also dont reuse the head bolts. also the gasket between the intake and fuel rail likes to blow in the back and usually throws up a p0171/p0174 code. other then that they were a tough engine.
the 4.0 sohc is another story all together, i think it started in 2003 but the cassate for the pass side timing chain like to come apart and make a hell of a noise. fun thing about the sohc engine, you have to remove the engine to replace the timing chains, 3 of them till i think 2003 then there are 4 timing chains. ive done a few timing chains on the 4.0 sohc. not fun at all.