muscle spasm in leg

I always have muscle spasm in my left leg. I would like to know some ways to soothe it. what should I use, hot or cold compress?