add pagination in wordpress page template

I am using custom page to display my taxonomy terms the terms are displaying fine but
i dont want the terms to all show in one page i want 2 terms per page but the pagination is not working and its showing all the terms on 1 page

this is the code that i am using custom page

I am using wpbeginner’s pagination code which i have put in functions.php.

and this is the code for the taxonomy that i am getting the terms form

It is possible to make a pagination