I know this question have already been answered many times. However I want to prove this using the De Rham cohomology of them, showing that they are not isomorphic and thus $S^2$ and $T^2$ are not diffeomorphic. I know that
$H_{d R}^r\left(\mathbb{S}^m, \mathbb{R}\right) \approx\left\{\begin{array}{ll}\mathbb{R} & \text { se } \quad r=0, r=m \\ \{0\} & \text {otherwise}\end{array}\right.$
which follows by the Poincarè Lemma. I'm not quite sure how to calculate the De Rham cohomology of the Torus though. Do I use that $T^2 = S^1 \times S^1$ somehow?