I want to create a php page on the website (CMS Wordpress), but I do not understand how to incorporate the template files, for example
You need to include wp-load.php in your script to use any of WP functions:
<? require_once('../../../wp-load.php'); get_header(); ?>
try that. xD