So '97 wiring harness and computer, if so I would stick with that and change engine parts, too bad you don't have the old engine
3.0l had a distributor from '91-'94
'95 and up used coil pack as pearl said
AND..........you will need a Cam syncronizer in place of the distributor, it runs the oil pump so very important part.
You will need to get a Cam synchronizer and the CPS(cam position sensor) that sits on top of it.
Good read here: http://www.therangerstation.com/tech...n_sensor.shtml
And you will also need the main crank pulley/harmonic balancer, and CKP(crank position) sensor, hopefully there are holes in the timing cover to bolt the CKP sensor on to.
If not you may have to switch to the old EEC-IV computer and wiring, as engine won't run without CKP sensor.
Stopping by a wrecking yard wouldn't be a bad idea, blown 3.0l 1996-1998 would have all the parts you need
Get all parts referencing '97 Ranger with 3.0l.
Only other sensors on the engine are TPS(throttle position sensor), IAT(intake air temp) sensor, ECT sensor, dashboard coolant temp sender and oil pressure switch, and they should match up.
Generally speaking when doing an engine swap you only swap the block and heads, you get the intake/exhaust , oil pan and valve covers from old engine
Honda(cars) are not any different, same sensors and requirements and same changes based on model year.