Chosen Solution

I replaced m power button sensor and it clicks now but now my iPhone won’t turn on. I tried to do a hard reset still not turning on

Did you try turning it on with a power cable? Other then that, try reconnecting the flex cable to the motherboard.