It could be a version of the telephone scam where they ask "Can you hear me" or "Is you name XYZ", then when you say "Yes" they have you recorded which is then used as you opting in/authorising some purchase or other crap.
The text could be a similar version of the scam, they have a text from your number confirming "Yes" for something you never really agreed to.