Originally posted by entropy1 I just got a Sigma 50mm f/2.8 macro lens off ebay
Before you start scouring your lens, is the aperture ring set and locked in the "A" position? This should allow for all exposure modes and should result in the aperture being displayed in the rear LCD rather than just F----. If you have a continuity tester (ohmmeter) you should be able to test the "A" contact against the mount face. For some lenses there is a pin that retracts when the ring is off the "A" position. For others there is an internal switch that breaks the circuit.
Next question...Is your Sigma an AF lens? If not, the lens will not provide focal length or lens code information or any other information beyond maximum/minimum aperture and whether the ring is in the "A" position. The data pin is only present and active for AF lenses.
In regards to cleaning, a pencil eraser can be used as can a paper towel sparingly moistened with rubbing alcohol. There should be no need to scour or abrade the surface since most mounts are stainless steel or chrome-plated brass and the contacts are made of a similar conductive material. There should be no need to short the contacts with foil. If the mount is too lax due to wear to allow for consistent electrical contact with the body, I would contact the seller and request a refund.
Guide to lens mount pins:
http://kmp.bdimitrov.de/technology/K-mount/Ka.html
Steve