An employee was troubleshooting a pump that was not working. The employee was on top of the piping system checking the flow switch. While troubleshooting the flow switch, the cap was removed and the employee noticed the flow switch was leaking. The employee made contact with electrical parts within the flow switch and a fire started. The employee then jumped off the piping system. The employee suffered a broken left leg and third degree burns to both hands.