2004 TRX350TE turn key and absolutely nothing…

Okay so lately I took my entire bike part down to the frame (I bought a new frame) and I was putting it back together yesterday and I got in motor, rear end, carb, and hooked up wiring harness. I turned the ignition key and pull started the bike (no battery in it). It fired right up and ran perfectly. so I cut it off and continued to assemble it. After that I installed rear brake lights, cooling fan, and battery. When I turned the key after installing those parts, the bike acted as if there was a faulty ignition switch. I tested battery and ignition switch and both were fine. Then I continued to test the wires at the solenoid to make sure they weren’t broken. They were good. Checked every fuse, all looked brand new. Triple checked making sure every ground connection on the frame was clean and making a good strong connection. all were good. Every plug on the wiring harness is plugged in exactly as it should be. The bike started perfectly before I put fan, battery, and lights on. Then two hours later it’s acting like the key isn’t even being turned. I also made sure it was in neutral before I tried to pull start it. it’s not getting spark through the plug.

Any help will be greatly appreciated.