There are plenty of options how to add search bar in the header. About one that I can recommend you can read here.
You can also add it directly inside header-extensions.php in similar manner like I described to add custom info there.
Basic search form can be called by using this WordPress function
<?php get_search_form(); ?>
You can read more about it on official WordPress documentation.