Forward unwanted text messages to 7726 so that your carrier will block them. Also, never, ever click on a link as it will probably install something nasty to your phone that you really will not want to deal with.
Report them here: https://www.ftccomplaintassistant.gov/#&panel1-1