When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.
You may have dirt on the contacts of the switch or a bad switch for your door locks. First try and clean the switch with some electrical cleaner see if that works if not you may have to replace the switch.