It looks like the code in contactform.php
may be causing issues.
These lines, specifically:
global $wp;
wp_redirect(home_url($wp->request));
exit;
The exit
statement may be stopping execution of the rest of the script. If you want to process form data, you should be checking for it and processing it instead of just running the redirect and exit statements whenever the part is included.