usb cable charges but does not connect

It’s really not so strange.  The pins for data transfer and the pins for charging are two different lengths.  If I remember correctly, the pins for charging are longer than the ones for data.