Last night I plugged my iphone 5 into my wall charger as I always do and when. I checked it early in the morning it didn't charge. In fact it had drained to 1%. I was astonished as I've never seem this before. It showed it was charging when I had originally plugged it in. I checked all connections and everything appeared good. After unplugging it I plugged it back in and it charged. When I checked later it was at 100%. I just thought it was strange that it didn't chafed the first time. Never had this issue before and not sure if this would be considered a hardware or software issue. I'm running ios 7.1 on my iphone 5. Has anyone experienced this or know someone with this issue?