3.0 has its own bellhousing bolt pattern, not shared with any other V6 or 4 cylinder. The ford 2.8, 2.9, and 4.0 all share the same bellhousing bolt pattern. The 4.0 OHV has a different fuel system, as stated, but all OHV 4.0's were return style fuel system. All 4.0's up to 94 (91-94) are OBD1, some had different intake plenums, and have a different wiring harness. 95+ OHV are OBD2 and have better heads. In 98 the 4.0 SOHC came available in rangers, and are only returnless fuel system. 98 also started pats, so swapping another ECU (required with a different engine swap, such as 3.0 to 4.0) will require reprogramming, provided your swap has the same type of pats. You can use another 3.0, but make sure you use your upper intake plenum and all sensors and electronics if your replacement engine is not a flex fuel engine, as the flex fuel systems use a different type of fuel rail and fuel lines...
SVT