The landlord is responsible for maintaining the property in a good state of repair. They will either take care of this directly, or if it is fully managed then via a letting agent. If however you damage the property by accident then you will likely have to pay for repairs, or the cost of repairs will be deducted from your deposit.