My iPhone is only blocked e-sim by Sprint and on the general → about it appears that there is no carrier lock.
Are you a customer of Tmobile USA and the original owner of the phone?
I bought it from a friend here in Brazil and I can use the physical SIM from any operator but I can't use the e-sim stuck with Sprint
Since your not a Tmobile customer there's nothing they can do to help you.
Also it sounds like the phone is jail broke not unlocked.
but sprint was bought by T-Mobile
And you're not a customer. Tmobile had no obligation to help you.
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.