We are just studying chemistry and the states of matter. We know the three states of matter are solid, liquid and gas. Fire is energy. Light, heat, and even sound energy.
Electricity is the movement of electrons.
Solids, liquids and gases burn and produce fire but fire isn't necessarily in a state of matter. Same thing with electricity. Hope that helps. Argonne National Laboratory, Division of Educational Programs, Harold Myron, Ph.D., Division Director.