Fordem is right on.
If you haven't done this before, breaking new ground on motor swap is going to test your resolve.
Take your motor number and check on internet on how to tell year of ford motor. Then you will know what year you are working with.
Check wrecking yards for Ford year ECU's. Also check for what wiring you can get.
Check with wrecking yards for Transmission and Transfer Case for you motor. Probably will need the Transmission Control Unit, and possibly the Body Control Unit also.
Newer vehicles have communication systems that will put Control Units into default if they loose communication with each other.
Having a donor vehicle means you the have everything available and at hand to make it work. Whether you are blending the two systems together to make it work, or swapping everything from the donor into the receiver vehicle, it will take lots of wiring manipulation to accomplish the task. The easy part is physically installing the motor & transmission TC, if you have jacks, jack stands, hoist or chainfall/comealong, torch, welder, etc. Mating off manufactor motor & transmissions usually takes a machine shop, or hopefully a manufactored adapter.
Or go to a shop and say make it so.
Read through the Build Diaries, and pay attention to how long some of the builds take, and how many seem to just go smoothly.
I just passed on a great deal on a 2.7 motor, Trans., and TC because there was absolutely NO WIRING, and I have a set of ECM, BCM, TCM for that model year. And I have made that swap. Getting wiring is a PITA.
Good Luck