Q1) "tenants are not cooperating with landord to sell the premises, can the tenant withhold landlord from selling his/her property?"
A1) 'Withold' in what way??? Can he refuse to schedule access to show the property?? Of course. Can he refuse to keep the property 'sale spic-n-span'?? Of course.
Q2) "does the tenants have to cooperate with landlord to sell the premises?"
A2) Not unless there is an obligation to do so in the lease.
Are your the landlord wanting to sell?? If so, you might talk with the tenant and see if you can negotiate some resolution to allow your selling the property. This could include providing maid service or reduced rent or an inducement to terminate the lease early, etc.