How to use contact module of Drupal 7?
use this code

&lt;?php
if(!function_exists('contact_site_page')) {
  require_once drupal_get_path('module', 'contact').'/contact.pages.inc';
  $output = drupal_get_form('contact_site_form');
  print drupal_render($output);
}
?&gt;


and put print drupal_render($output); where ever you want to put the contact form.

as another solution you can also assign a region for where you want the contact form to be then place the form in there.