The Search block adds a search field, so visitors can search the posts and pages on your site. It’s often placed in the header or a sidebar, and the results are shown on your theme’s search results page. Here’s a working one, which searches this site:
In block themes, the results page is a template of its own, which you can edit in the Site Editor like any other template.