After migration to another server we don't have any languages here (but we had english and polish) and when we open settings page in wpml in shows critical error.
It seems like your migration to the new server was not complete.
To resolve the issue, could you consider performing another migration using a different method? For instance, you could migrate using Duplicator or All-in-One Migration plugins.
Please ensure that you transfer the entire website, not just a part of it.