Below are some tips to help you fix the wiring for a single-pole switch.
For help with troubleshooting multi-way switch wiring, see multi-way installation troubleshooting.