You can switch your server to another game, or another type of the same game (for example Vanilla → Paper), from Settings → Change game.
Switching usually wipes the server's files so the new game installs cleanly, so take a backup first. If the new game needs more RAM than your plan has, you'll be shown the upgrade price before anything changes.