If your rental property is unsafe there are several different types of action that you can take including:
Speaking with your landlord or letting agent to try and get the issue resolved
Making an official complaint if your landlord does not make repairs
Contacting your local authority if the issue is still not resolved
Taking legal action and making a housing disrepair claim against your landlord