When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.
The only common motor for those years would be the 5.9. The motor itself should be identical, but some wiring might be different. As long as you reuse all your existing electronics it should work.
Well, the 5.9 and 5.2 are pretty much identical for the most part, so you should be able to swap a 2001's 5.9 into your 98 (you'll want the transmission too).