Chosen Solution
I changed my housing battery and dock connector on my iphone 7, it turns on and everything works but it doesnt charge (i´m on ios 13.1 dunno if that has sth do do with it)
have you tried a different dock connector, it could be a faulty one