Let $M$ be a closed connected $n$-manifold. If there exists a submersion $p:M\to S^1$, then $p$ is both proper and onto (since $M$ is compact and $S^1$ is connected). Therefore, by Ehresmann's theorem, $p$ is a fiber bundle and $M$ admits a codimension one foliation. In particular, the "easy" Thurston's theorem (the easy implication I mean) implies that $M$ has Euler characteristic zero (see here for example).
I am interested in the converse of this proposition:
If $M$ be a closed connected $n$-manifold with Euler characteristic $0$, is there always a submersion $$M\longrightarrow S^1~?$$
If $M$ has Euler characteristic $0$ the hard implication of Thurston theorem says that there is a codimension 1 foliation on $M$. Of course this foliation doesn't have to be induced by a submersion to the circle (the leaves could be non compact), but maybe there is another foliation on $M$ coming from a submersion to the circle.
There should be some obvious counter examples but I can't find one. If there are indeed counter examples to this statement, I'd be happy to know if they are counter examples where $M$ admits a flat metric, that is
Is there a closed connected $n$-manifold $M$ which admits a flat metric (and hence $\chi(M)=0$ by Chern-Gauss-Bonnet theorem) such that there is no submersion $M\to S^1$?
Remark: In dimension $1$ and $2$, the only closed connected manifolds with Euler characteristic $0$ are the circle, the Klein bottle and the torus, and they all admit a flat metric and a submersion to the circle.
Thanks in advance.