I am trying to set up a new phone and trying to sign in to my Apple ID on the new decide it is asking for the verification. Odd that is being sent to the other iPhone that is shattered and the screen is black

The texts are being sent to that other iPhone with the black screen and I do not have another phone to put the sim into and get the texts

Does anyone know how to do this ? Get the code another way ?

I hope I explained this clearly but basically trying to sign in my Apple ID on a new phone cause my other phone is completely broke but it is asking for a code I can’t text cause it’s on the broken phone