You gain access to Social Security benefits by paying Social Security tax. When you earn and pay taxes on a certain amount of income, you earn work credits. After you have earned 40 work credits, you ...