Open Search and type at least 2 characters. It looks through messages, communities, and people.

You only see content you are allowed to see. Deleted messages are not included.