Chosen Solution
Ive just recently changed the battery on my iphone and the LCD and it was working perfectly fine, however when i changed the battery i teared the flex cable for the silent swtich. So I replaced the whole chassis and put everything back into place and replaced the flex cable but for some reason the phone turns on when I put the power cable in but does not charge/goes up a few % but does not show the lightning icon. The CPU gets really hot and the flashlight does not work.
I have removed the EMI shield for a better view of the circuit board.
With so many things changed at the same time, that’s a lot of variables that need to be eliminated. Firstly, why did you change the chassis if all you did was tear the power button flex? Yet you also mentioned that after the chassis change, you replaced the flex. Was this an empty chassis or one from another device? Fake charging is usually logic board related (Tristar) but in this case, you may have damaged the charge port flex. At this point, you need to troubleshoot with know good parts and try only one thing at a time. Start with Lightning Port flex and battery. If you don’t have access to known-good parts, you could consider asking a shop to look at this.