Stanley Stephenson

I have a floor lamp with 3 light bulbs. I replaced the switch that was defective ,but having it difficult to make it worked again as previously. Originally I could turn 1 lamp or 2, or 3 light bulbs or none just by turning the small button on the switch.

Coul you please draw me a diagram of how the wiring is supposed to be done with a system like that..Also is the graound wire essential? You reply will be very much appreciated.

Thank you so much and happy new year.