People who experience pain, discomfort or limited mobility from medical problems may have difficulty falling asleep or staying asleep. Insomnia due to medical conditions is most common in older adults because people tend to have more chronic health problems as they age. Conditions such as pregnancy, particularly the third trimester, and menopause can cause sleep problems. The severity and duration of insomnia often varies with the related health condition.