Ted Cruz ran for the position before then-Attorney General Greg Abbott (present TX Governor) decided to seek reelection. So he dropped out.
I don’t remember him actively campaigning for AG.