Ok, you should've led with that lol. So telling us that your engine "looks like" one that came out of a 2000 definitely doesn't help. 5.9 Magnums look the same from 1993 to 2003. Next, all that harness you took isn't going to help you at all trying to put this engine into a 2005, especially one with a 4.7.
What to do now? Stop. You aren't going to just drop in a 360 where a 4.7 sits and have everything go well. You would need donor wiring and PCM plus transmission from a 2002 or 2003 with a 360. The 4.7 PCM/control system has more in common with the hemi than it does the 360. You're not gonna be able to use your stock trans with that 360 either. The fact that you're not exactly sure what you have and definitely don't know what you're in for and how the electrical and control systems differ between and within platforms tells me you aren't up to this. If your 4.7 is fried, replace the engine and get rid of the truck, then find what you what. Trust me this is gonna be more trouble than it's worth. This ain't the old days where you can just mix and match.