Who has social housing tenancy rights after separation?

Tenancy agreement in both names , if one party leaves the house hold to live with new partner and couple separate would the person remaining in the house be able to remove the party that left from the tenancy agreement ? If the new relationship doesn’t work out do they have any legal claim to move back ?