Leggs hurt at night can't rest what cause this?

Unsure? Leg pain, cramps, creepy-crawly feelings, ever ending need to move the legs, & other lower extremity symptoms are common place and very uncomfortable and disturbing. Get seen checked out in general and perhaps have some electrolytes checked (sodium, potassium, magnesium, calcium and others. Most importantly, you may need to see a sleep specialist. A sleep study may be needed. Restless legs?
Restless legs? This may represent restless legs syndrome. In many cases it can be controlled with medication. See your primary care doctor.