Chosen Solution

My iphone 7 doesn’t turn on anymore but the battery and the charching port are both still good. I have tried them on a other iphone 7. So what else could be the problem i have to fix?

If the phone doesn’t power on, but battery and charge port are known good, you could have an issue with one of the other parts. I would try turning it on with the minimum number of parts connected. You should only need battery, display (no home button or front assembly cable) and charge port to test this. Plug in the charger, see what happens. If you get power, plug in parts one by one until it stops powering up. Last one you plugged in is the bad one. If you still don’t get a response with bare minimum connected, it’s time to consider a board level issue. So you would need replace the logic board. Or find someone (or develop the skills) to fix the board itself.