If you are changing the theme in wordpress, you won't lose your content. But while changing your hosting, you can take a backup or down migration plugin. Download a new theme and upload your backup.