Do a 4x2 1997 ford explorer engines come in OHV or SOHC?

Actually , depending on the model , both versions of the 4.0 L were still used in 1997

If you look at the 8th " character " of the VIN :

" X " is the 4.0 L - OHV engine and " E " is the 4.0 L - SOHC engine