Damaged USB connector is my guess, data lines not making a good connection. Try using a different cable, particularly if it's micro USB - MicroUSB cables are very prone to failure, particularly when people use them to charge a cell phone while using the phone - the positions that people tend to hold the phone in often ends up putting a lot of stress on the connector.