My Samsung galaxy s3 wont charge unless I hold it in certain positions and if I hold the part that connects to the phone in an up position vertically. My brothernkinda has the simular problem. Its not the chargers I believe. I have bough different one and tried different things.
The "jack" that the charger cord plugs into is defective or has been slightly broken, you need the "jack" repaired etc.