Settings for your device may have USB options that need your permission to do certain things.
If you are charging from computer the USB port may not send enough current through the cable to charge properly.
Try a different cable since this may also be the problem.