A couple of common causes of insomnia are adrenal fatigue (high cortisol) and parasites. If you've been under stress for a while due to illness, job or family stress, it can cause the adrenals to pump out cortisol to compensate. In the early stages of adrenal fatigue high cortisol is the main factor for fatigue and insomnia.
can also cause insomnia by producing ammonia as waste disrupting your sleep.
A 24 hr cortisol test can determine if you have adrenal fatigue.