turn on my day lights and put the fog lights on I here a clicking sound and they on 2003 BMW 325i

don't work the sound seems like its comeing from the glove box area plus I smell a plastic burning smell not all the time but a lot...if I use the key to unlock the door the head lights come on...some times the remote key works now the only time my fog lights work is if I put on the reg. head lites

Asked by for the 2003 BMW 325i