Cannot get verification code
Hi, i am trying to log in to my apple id and its asking for a verification code which should be sent to my phone number but i am not receiving any verification code from apple. In addition when i first verified my number for apple id it automatically verified my number without asking any code. Maybe my sim card was inserted on the phone. Bt now i have removed my sim and put it on another device because i reset my phone and trying to log back in to icloud to restore my data but i am not receiving any verification code. I have waited long time for the code to arrive but nothing is coming through. What is the issue here?
iPhone X