Unsolicited text messages that ask for money are scams.
Government agencies (such as the IRS or Medicare) and other legitimate organizations (such as Amazon, Facebook, or your bank) will never ask you to pay a bill or buy a service via text message.