I thought this question was trivial, but I actually can't answer it, I hope I'm not missing something important.
Let $S^1:=\{z\in \mathbb{C} \textit{ such that } |z|=1\}$.
Can there be an injective continuous function $f:S^1\rightarrow S^1$ which is not surjective?
Then this question generalizes to:
Consider $M_n$ a n-dimensional differential compact manifold. Can there be $f:M_n\rightarrow M_n$ continuous and injective but not surjective?