Most likely you will need an 02-03 ex trans. Maybe computer too.
In 04 OBD II CAN became the new diagnostic standard, im not sure if ford changed electronics.
You will need the explorer harness and graft it to your truck.
Here is some info i have. I really haven't looked too deeply into this.
99 x-cab 4x4 4.0l auto
mods, cranked t-bars, silencer delete, k&n drop in, Rebuilt trans ,Trans Go stage 3 shift kit, 3200stall Fuddle Racing Torque Converter,
VANIR 63mm TB, Roush split rear exit exhuast, E-Fan, JBA Headers
Auto up/down both windows, OHC, EATC (soon to be modded)
03 Crown Victoria Police Interceptor