Yes, both the contractor an sub contractor are bound to pay PF and ESIC.
In default of the payment on such account by the contractor and the sub contractor you are liable to make such payments.
So instruct or seek papers form your contractor as proof of payment of such statutory deductions.