Social security and medicare taxes deducted from your paychecks are not withholdings, but are your contributions to Social security and Medicare. They are not refundable.
If you do not have federal tax withholdings, you do not get a refund, unless you have a refundable tax credit such as the Earned income tax credit.