sleep helps the brain function. the details are not fully understood, but it is important to get enough sleep for the body and the brain to be healthy and to work properly. in general, animals (and people) sleep at periodic intervals, such as once a day. certain animals send out signals to the others that they will soon go to sleep. yawning is such a signal.