Comment form on custom page template

If you want to display default WordPress comment form then you need to call comments_template() in your template. Make sure that comment_status should be open for the particular post that you want to display the comment form.

<?php
comments_template();
?>

Read more here https://developer.wordpress.org/reference/functions/comments_template/