While it's a good idea to memorize the fact that a geometrically distributed random variable with parameter $p$ has expectation $1/p$, you can solve this problem without computing the sum by finding a recursive equation (this is called conditioning the expectation).
Let's look at only the outcome of the first coin flip. There are two cases to consider. If we flip heads (with probability $1/3$), our number of coin flips has increased by one, and we'll stop the coin flipping process. On the other hand, if we flip tails (with probability $2/3$), we will add one to our coin flip count, but now we've effectively "restarted" our coin flipping process (with our count increased by one).
By the law of total probability, this gives the equality
$$E(X) = \underbrace{\frac{1}{3} (1)}_{\text{heads}} + \underbrace{\frac{2}{3}(E(X) + 1)}_{\text{tails}}$$
You can solve this equation to find $E(X) = 3$.