engine replacement on 2004 Ford F-150

i put 05 motor in my 04 truck. truck want crank. had pcm flashed still want crank

2 answers
Are there any codes stored? Are you getting power to the starter motor from the ignition switch when cranking?
is crank sensor plugged in is it possible it has a bad cranks sensor on the replacement engine check codes first