Chosen Solution
My iphone 7 was working perfectly fine until it got slightly bent, when it was bent it worked normal for about a week and then all the sudden it just stopped charging properly and stayed at one percent when you started to charge it. also when i would power it up it would boot loop for around 5 to 20 minutes and then eventually go flat another thing is that some apps are very glitchy and will crash sometimes the mic does not work at all either. i have tried to fix this problem by replacing the battery and replacing the charging port however neither of these have worked. does anyone know what is problem is?
It seems like a logic board issue to me, flexing might have caused pads or ICs lifting/breaking along the two critical parts besides the Simcard reader. As @tech_ni already mentioned you may try replacing dock not to let the easiest possible solution untried but I’m afraid that won’t fix your problems, chances you’ll need a logic board level repair are quite high.
maybe needs a new dock flex, if that doesnt work probably the charging chip