If all the other positions works OK, then it is the switch or the wire! Try jiggling the switch back and forth about 100 times, if it moves only once then the switch is bad or dirty.
If the switch is intermittent and you are handy, you can disassembly the switch and clean it!