usb cable charges but does not connect

Have you tried using another usb cable?  One of the pins may have become loose or bent, preventing a connection.