A tenancy agreement is a legal contract, so you can't just leave if you no longer want to live in the property. If you believe that the landlord has broken the contract by failing to carry out repairs, you need to have a strong body of evidence to prove this. If you don't, a court could order you to pay the landlord the rent that you owe up to the end of the contract.
Renting problems video tip: Can you break your contract?
Lots of people are struggling to manage with housing issues because of the coronavirus crisis. Check out our Coronavirus section for information and advice on common problems, including help to pay your rent and mortgage, eviction and repairs.