A tenancy agreement is a legal contract.You can't just leave if you no longer want to live in the property.
You might want to move out if your landlord isn't doing repairs. Make sure to get advice if you're thinking about this. Your landlord could take you to court, so it's important that you have evidence to show all the steps you took to try to get the landlord to deal with the problems.