If you suspect a defect in the wiring, it is important to call a professional electrician. An electrical inspection can give you an idea of the extent of the problem and the necessary repairs. Do not attempt to do electrical work yourself as it can be dangerous.