By default, there is a space between the header and the content. This is for the default design. But in some cases you may want to remove the spacing between pages, posts or archives.
You can make spacing adjustments by navigating to Customizing ▸ Global ▸ Layout.
If you only want to disable content spacing for a certain page or post, you can find it in the post settings, learn more.