I logged into my Microsoft account through a laptop, found a folder with contacts, copied it to the desktop, then went to my Google account and copied the contacts from the desktop. They appeared on the phone automatically. Yes, accounts are needed ... My old phone drowned ...
To transfer contacts from one phone to another, I recommend only two methods that do not require you to install additional applications.
Here is a detailed article with screenshots on this matter: https://aydasite.ru / kak-perekinut-kontakti-s-androida-na-android /
In short, this is done like this:
At the first launch of a smartphone running on Android OS, we are offered to create a Google account. Few people ignore this recommendation, because many functions are not available without a Google account, for example, you cannot use Google play. Not many people know, but a Google account is useful not only for the presence of the Play Store. In fact, having an account implies the ability to use many other useful services and functions. So, you can sync Google with your phone book. This method not only allows you to transfer contacts from Android to Android, but also guarantees the safety of information in case of loss of numbers (for example, if you lose your phone).