Suppose $S$ is a closed surface with genus greater than $1$. Give an example of two loops on $S$ which are not homotopic, but are homologous to each other.
I need help solving this question. I have read the Wikipedia page on it and I realize that it does not contain the necessary knowledge to visualize this problem.
And I was also wondering the relation between the fundamental group $\pi_1(S)$ and the first homology group $H_1(S)$? Some restrictions is that $S$ is a closed surface and the genus is greater than $1$.
As OP seems to require further elaboration on the torus case, here are some details. Consider the standard presentation of the torus:
The tricky thing to realize is that the loop $ABA^{-1}B^{-1}$ going around the square is actually homotopic to the constant loop by scaling the loop down into the top left corner, say. In the same spirit, you can find a homotopy between $AB$ and $BA$ by pulling the loop across the square.
But this only worked because we used all of the $2g = 2$ generators and considered the loop around the full polygon. For example, consider the $g=2$ case that we have in the following image:
We can again scale down the full loop $a_1b_1a_1^{-1}b_1^{-1}a_2b_2a_2^{-1}b_2^{-1}$ down to one of the points. But there is clearly no homotopy between $a_1b_1$ and $b_1a_1$. You'll get stuck across the polygon when you try to homotope these two.