try a different usb cable.
are you rooted?
how long have you had the phone? did this start happening on day one?
did you install any apps? uninstall anything prior to this happening?
do you have fastboot checked?
try a different computer.
if you factory reset and its still having issues, it could be a faulty cable or a physical phone issue (rare).