Register to https://www.twilio.com/
Create a project.
Look for a "buy number" option.
Pick the country and remember to tick the SMS option
Now you should have a number.
To see SMS, go to the # (Phone Numbers) option -> Active numbers.
Click on the number and proceed to "Messages...