In algebraic topology, we use homotopy group $\pi_n(M)$ to classify the homotopy class of continuous map $f:S^n\rightarrow M$.
My question:
What's the mathematical object to classify the homotopy class $f: N \rightarrow M$ for general manifold $N$ and $M$? Can we reduce this question to $\pi_n (N)$ and $\pi_n (M)$?
If question 1 is too hard. In specific, how to classify homotopy class of $f: T^2 \rightarrow S^2$ and $f: T^n\rightarrow S^n$ for general $n$? Thanks to Qiaochu Yuan, the answer to homotopy group of $T^n$ to $S^n$ seems to $\mathbb{Z}$.