Chosen Solution
Sorry for my bad english. I took my phone to a bad repair service to change the battery, and since then, my phone only charges after few trys of plugging it and unplugging it. I tried different cables and wall adapters but I always face the same problem. When plugged to a computer it shows up and stay connected ( I think the charging port is not defected ) and it electrocutes me when I touch it. (only when plugged into a pc) . I tried a DFU restore but that didnt help. Thanks.
I’m not 100% positive, but maybe since it is an old iphone, they put an improper battery in causing weird instances like that. If it is not compatible maybe it does weird things. You might just want to think about updating phones or just trying to make the batter work.