How do sleep problems affect thoughts, memory and emotions?Explain your answer.

How do sleep problems affect thoughts, memory and emotions?