I'm putting an 00 explorer 5.0 in my 01 trac.
It will fit, but 98 is the oddball year that has different wiring and a fuel return. If you have emision testing you will need a 01 pcm that will not work with the 98's wiring. ideally you wnat a 99-01.
As an FYI there is no 302 that wont fit...