What kind of bike?
The Honda CBs have a switch with a small ball bearing in it and a plate with different contacts for positions (off, on, high). They sometimes get gummed up or worn with use. They're easy to take apart and clean and put back together.