I have had two(!) USB cables exhibiting connection problems. Both worked for a while, then worked only for data, but the phone would not charge through them, then lost connection altogether. How can a cable break is a mystery but they do. The upshot is, try a different cable.