When the lessor/agent prepares your tenancy agreement, they should include information about what you should do in an emergency. The tenancy agreement may tell you to contact the lessor/agent first, how to contact them after hours or in an emergency, and may give you the contact details of nominated repairers for problems to be fixed (for example an electrician and a plumber)