My iphone is not charging when plugged in to my pc or plug socket, yet it still brings up my photos and music when plugged into my computer automatically, which it only does when it is connected to my phone. My phone is a 5s btw.
Read more: Why is my phone not charging?