Look at what you book says again.
A closed flat Riemannian manifold can not be simply connected. A fundamental theorem says that its fundamental group must contain a subgroup isomorphic to ##Z^{n}##. So in fact, any parallizable closed manifold with a finite fundamental group e.g. ##S^3## and ##RP^3## can never be made flat.
But this is far from the whole story. For instance every orientable closed 3 manifold is parallelizable.
The fundamental group of a closed flat Riemannian manifold has a special structure.
It is an extension of an n-dimensional free abelian group by a finite group
##0→Z^{n}→π_{1}(M)→G→1##
and has no elements of finite order. For instance, for a torus ##G## is the trivial group.
- There are parallelizable flat Riemannian manifolds that are not tori. For them parallel translation of vectors around closed loops depends upon the homotopy class of the loop..