You can customise the loop query to get results based on a search term – with $s being the search term;
<?php // Post Query
$args=array(
's' => $s,
);
?>
<?php query_posts($args); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>