This is how I fixed my desire HD and Nexus after the cable started to fall out while charging or syncing. (Well i put up with it for about a year first before i got grumpy and did something about it.)
Thanks to northcaledon for the original Video!
• Simple Fix for Phone Not Charging/Cord Fal...
Have a look at another video I created on how to clean the USB cable:
• Phone Not Charging Micro USB Cable Clean