What are all the Engines from different Vehicles that i can put in a 1998 Ford Ranger XLT? I need a 3.0L V6?

I have a Automatic Transmission. 2 Wheel drive.

I NEED Help Please! MY ENGINE JUST BLEW!

Rangers and Explorers are your best bet. 4.0 is externally the same, but you should take the computer with it. Get a rusty Explorer or Ranger for parts, you will have everything you need for a 3.0, 4.0 or even a 5.0 swap. 2WD or 4WD doesn't matter. Year doesn't matter if you have a parts truck. Rusty Explorers are pretty cheap.
The exact engine is from a 1998-1990 Explorer, Ranger, or B3000. All B3000 are 3.0. B4000 are 4.0. Any 3.0 you find will fit, but you may need to use some of your parts to make it identical.

Generally speaking a 3.0 engine is a 3.0 regardless of which vehicle it comes from. There will be adaptive issues you'll have to deal with in any exchange but using an engine from another Ranger will be the easiest and require fewer changes. To make things simpler, I'd stick with one from another Ranger that has an automatic, one from the same or close in model years.