It's the thin crappy cable. My note 5 had the same problem. After a couple months it would just cable charge most of the time. There is a thread about it in the note 5 forum.
Contacting samsung was a waste of time.
I finally bought a nice usb cable which resolved the issue
Posted via the...