Scams & fraud
Do not touch that text. Do not call the number, do not click the link. It is a scam. Apple does not send you a text saying your Apple ID is locked and ask you to click a link or call someone. They just do not.
Here is what to do: open your iPhone's Settings yourself, tap your name at the top, and look at your account. If everything looks normal there, your account is fine and that text was garbage. If something really is wrong, fix it there — inside Settings, the app you already have, not a link from a text.
One good tell: those scam texts often show up even on phones that do not use Apple at all. Delete the text and report it by forwarding it to 7726.