I had this problem and spent hours trying to figure it out. Reloaded drivers, messed with phone settings, downloaded LG G2 drivers...nothing worked...
IT WAS THE CORD!!!!
It would only charge but not allow communication to the PC.
Hard lesson learned.