It's a well known scam.
Block the number and report it free to 7726.
DO NOT follow any links or enter any information.
O2 advice here https://www.o2.co.uk/help/safety-and-security/phishing-and-smishing-advice
How to block a number:
Track usage, upgrade and get support with the My O2 appDownload My O2