How are brains dream

How are brain dreams at night when we sleep or when were awake