Unless the fire is really small and controllable, do not try to put out the electrical fire by yourself
When an electrical fire breaks out, get out of the house immediately. Make sure all your family members get outdoors. This will prevent loss of life or injury.
Before exiting the house, make sure you close the door. This helps in containing the fire within the house rather than spreading outside as well.
Once you and your family are at a safe distance, call 911 for help.
Do not try to re-enter the house until the fire is completely extinguished by the firefighters.