Do you mean when you push the cigarette lighter in, that it won't heat up and pop out? If so then the heating element is probably shot. You can buy those at just about any auto parts dealer. It's Dorman (a.k.a. "HELP!" ) number 56444 Lighter Element, Standard.
https://www.dormanproducts.com/cgi-b...tegory_list=:0
If you mean for example like plugging in a cell phone charger into the lighter socket and the charger doesn't work, it could be one of two things. It could be that the center contact of the lighter socket in the car is corroded/pitted. In that case replace the lighter socket AND the heating element. Chances are that a pitted/corroded heating element ruined the center contact of the socket so replacing both would be needed.
The other thing is wiring. I have a 93 corolla DX and the schematic shows the Gray wire goes to the lighter socket center contact from the fusebox. The sleeve (frame) of the lighter socket is white-black wire going to ground through a "J3 Junction Connector" and another connector over in the right kick panel.