The cost of a plane ticket from California to Texas will vary depending on the carrier used and if it is a non stop flight or not. The average cost for a non stop flight from San Francisco to Dallas is $300.
It really depends on where in Texas you are driving from. From the heart of Texas it is about 875 miles and a little over 14 hours. It would probably be easier and cheaper to buy a plane ticket and fly there.