People with brain injuries may produce low amounts of melatonin, which affects their sleep, according to a new study.