Go to WordPress Dashboard >> Appearance >> Customize >> Header Option >> Navigation Bar >> Site Search >> Hide/Show