You should contact a landlord/tenant attorney in your immediate area to assist you.
There are ways for you to notify the landlord that you will be withholding rent from him/her and then get court approval to preserve the money and use it to repair the problems. Electrical fires indicate that there are serious problems with the residence and you are correct, nobody is required to live that way.
That being said, the reason I recommend an attorney is because if you just withhold rent you could be on the receiving end of an eviction. Also, once you complain it is illegal for the landlord to retaliate against you, offering you further protection.
If you cannot afford an attorney check out your local legal aid and see if you financially qualify for assistance from them.
Best of luck.