how to Adding pagination on template page wordpress

get_template_part( 'template-parts/pagination', '' ); is merely including the template-parts/pagination.php file from your theme. If you don’t have that file then nothing will happen.

The correct way to add pagination is either the paginate_links() function, which will output links for each page number (see that link for the options for customising the output):

<?php echo paginate_links(); ?>

Or you could just output ‘next page’ and ‘previous page’ links with posts_nav_link():

<?php echo posts_nav_link(); ?>

If you want more control over where the next and previous links appear, you can output them separately with [previous_post_link()][3] and next_post_link().

<?php previous_post_link(); ?>
<?php next_post_link(); ?>