Phantom maps provide a large class of examples of maps which are not homotopic to the constant map, but which induce the zero map on both homology and homotopy groups. There are uncountably many distinct homotopy classes of phantom maps $\mathbb{C}P^\infty\to S^3$, for example.