It's definitely a 4.0 as others have said. Apparently it was removed from a 94 ranger, that is a 91-94 4.0..can tell from the upper intake manifold. Looking at the front accessories, it most likely came from a 93-94 ranger or explorer. The transmission is an automatic with the torque converter beside it.
You mentioned your ranger is a 5spd manual, you would need a transmission, harness computer, and accessories as that 4.0 looks like some are damaged or missing. It were my truck I would pass on it. The older taurus has a 3.0 vulcan, those should be plentiful to find. Find a good long block, buy new gaskets for your 3.0 ranger, and use all your ranger accessories and parts to bolt on the engine.
That 4.0 would be good for someone who already owns a 4.0. Without having all you need for a swap, would be a challenge to locate what you need and to be in good shape.
Is your 3.0 ranger a 93-94?