Consider a once punctured solid torus $(\mathbb R^2 \times S^1) /\{pt\}$. It is not difficult to see that it is homotopy equivalent to the bouquet of spheres $S^2\vee S^1$. So this guy has a non-trivial second de Rham cohomology.
How can one construct a 2-form representing a cohomology generator?