Social Security is financed mainly on a pay-as-you-go basis, which means that payroll taxes of current workers are used to pay retirement, disability, and survivor benefits for current beneficiaries.
Taxes paid by people currently working are used to fund social security programs for those currently on it.