Your once workable lamp is now longer working and could just be as easy as replacing the cord.
There are 8 products.
10' Gold lamp cord set with polarized molded plug, cap tips, UL, 18/2 SPT, and 105º.
8' Gold lamp cord set with Hi-Lo switch located 24" from free end, UL, 18/2 SPT-2, 105º and with polarized molded plug.
Inline lamp switch clamp-on 18/2 SPT-1 CORD (6A-125V) (3A-125V) (3A-250V).
Hi-Lo dimmer switch, 200W-120V AC., 18/2 - SPT1 wire.
Black slide On/Off in line cord switch. Screw terminals screw together case UL. Use with SPT2 wire.
8' Black Cord Set w/Line Switch, 18/2 SPT-1.switch is 23" from lamp end capped tips and polarized plug.
Black 1-2-3 plug, polarized, UL, 10A 125V, 18/2- SPT 1 wire. Easy to assemble or remove, no stripping, no screws.