WordPress is a server application that requires a database (prefers MySQL) and needs PHP to run.
So when you transfer your site to a new server, it’s actually about a 5 part process:
1) Transfer the database to the new server’s database. See WordPress’ export plugin or look for a database migration plugin or tools.
2) Install the WordPress files on the new server including whatever is currently in your wp-contents folder (plugins and themes).
3) Update your wp-config.php file which is WordPress’ configuration file, to reflect the new server environment (including database name and user account and password to access that database).
4) Use a database tool or WordPress plugin to update all the URL’s in the transferred data to reflect the new server environment.
Anyway, make sure to read through this: https://codex.www.ads-software.com/Moving_WordPress
It’s really not as difficult as it sounds although it pays to pay close attention. And, before doing anything, make a backup of your database.