I'm a contractor and when I could not complete a project, I got sued under Texas Construction Trust Fund Act. Are there any defenses?

Yes.

You may be able to use the affirmative defense that all the trust fund money was used to pay overhead expenses. See Texas Property Code Sec. 162.031(b) and TAG Investments, Ltd v. Monaco, 5th Cir. 2016.