My 5.3 on my 2007 Tahoe recently messed up so I’m thinking about 6.0 swapping it but idk if I can just pass the harness and the intake over to the 6.0 since it’s just the engine with no cables ? Will it work and what do I need to do ?
It can be done. But, IMO, it's not worth it.
The '07 is a Gen4 engine, the '02 is a Gen3. The Gen4 has knock sensors on the lower sides of the block, above the oil pan and the Gen3 has them in the lifter valley, between the heads. The Gen4 has the camshaft position sensor built into the front timing cover whereas the Gen3 has it in the block at the rear center, next to the oil pressure sensor. These are actually the [relatively] easy differences to overcome.
The REAL work is the reluctor wheel on the crankshaft. This lets the PCM know the position of the crankshaft in its cycle, which it compares to the position of the camshaft to determine spark and fuel timing as well as misfires. The Gen3 and Gen4 engines have vastly different reluctor wheels. You'd have to change the one on the Gen3 to the one from a (or from your) Gen4. This requires disassembling the bottom end to remove the crankshaft then meticulously and accurately swapping the reluctor wheels. It's a bit of hackery, but you might be able to swap the entire Gen4 crank into that Gen3 block. Just replace all the bearings and cross your fingers. If you disassemble the bottom end, you might as well just do a full rebuild, though.
The other internal difference is the camshaft and timing set. Similar to the crankshaft reluctor, the Gen4 has a 4x trigger on the cam gear versus the Gen3's 1x trigger on the camshaft itself, at the rear. The Gen4 also has a single large bolt to hold the cam sprocket to the cam whereas the Gen3 has three small bolts. You can get a cam sprocket from GM that has the Gen4 timing triggers but with the Gen3's three-bolt cam pattern. Again, this is the least of your worries compared to the crankshaft reluctor wheel issue.
All else (intake manifold, front accessories, starter, etc.) can be used from the Gen4.
What messed up on your '07 engine?