Iphone 6 only league in the DC Source

I’m an iPhone that will not turn on the charger will not turn on a charged battery but if I connect it directly to a DC source it connects. Any idea what it might be?