I know your issue is solved, however, I decided to post here because it's such a similar issue that I didn't want to start a new thread.
For about 3 - 4 months I had no issue with my new S5, then one night after plugging it in to my wall charger, it would NOT accept the charge. No matter what I did, it would not beep nor display the charging icon. I even turned it off, checked the pins, changed wall sockets, nothing worked. As a last resort, I plugged it into my PC and right away, beep, charging.
Back to the wall charger, nothing! - Back to the usb/PC, beep, charging.
After one full charge on the PC, I can go back to the wall charger for a few charges then the same thing happens and I have to charge by PC again. I haven't narrowed down the specifics yet but it seems to be, for every half dozen or so wall charges, I need one Pc charge. Quite the inconvenience as I need the phone by my bedside.
If anyone else has this issue let me know, I'd like to know why this is needed! Such an odd thing.
Thanks
damwierd