Chosen Solution

So my iphone 6 wont charge at all with any cables i have tried, but i changed the battery and it had som life into it. afterward i tried changing the charging port from one iphone 6 working but the problem stayed, any suggestion to what this can be caused by?

To be clear, your issue is your phone will not charge when plugged in but the phone has life when you put a charged battery into it? If so that sounds like an issue with your charging IC or possibly USB communication IC. If its one of those I would recommend bringing it to a repair shop that specializes in board level microsoldering and they should be able to change the IC for you