I am new to WordPress. Can you please suggest the steps to insert a header image slider. I don't know how to insert the code and where.
Quite often, the easiest way of doing this is via a plugin (http://wordpress.org/plugins/search.php?q=slider&sort=) or via a built-in one in the theme.
Lots of modern themes have sliders built in that you can just adjust through the admin section (i.e. upload / resize the images you want) and then drop the 'shortcode' (i.e. [myslider]) on to your page.
Depends on what theme you are using because some include hooks which make the job easier.
For themes which don't include hooks like Twenty Eleven & Twenty Twelve, you can simply past the PHP tag for the slider into the header.php file in the position you want your slider to display.
Example if using the free version of Soliloquy:
Simply replace the 007 with the i.d for your slider which is generated once you create a new slide show.
If you only want to display your slider on the front page, add a conditional tag to the code like this:
Note: You should copy your parent themes header.php file to a child theme before adding the code for the slider otherwise you may lose it if you update the parent theme.
If your theme includes hooks, then you can add a custom function in your child themes functions.php file like this which assumes you're running on the Genesis framework: