$H$ is normal in $G$ and $q$ is prime with $q\mid[G:H]$. Show that there exist $g$ in $G$ such that $g^{q}$ is in $H$.
I am not sure how to use $q\mid[G:H]$. Should I try to show that $f:G→H$, with $f(g)=g^q$ or there is better way to do it?
g can't be the identity
Thanks in advance.
As suggested in the comments, if we allow $g$ to be in $H$ the problem is trivial. Here is how to find an element $g\notin H$ such that $g^q\in H$:
Look at the quotient group $G/H$. This group has order divisible by $q$. By Cauchy's theorem there is an element of $G/H$ of order $q$. Hence it's representative $g$ satisfies $g^q\in H$, while $g\notin H$.
Also notice that the map you suggested defining in your question, $f(g)=g^q$, has image lying in $H$ iff every element $g\in G$ satisfies $g^q\in H$. This will of course not be true in general since the quotient may have elements of order not dividing $q$. For example, if some other prime $p$ divides $[G:H]$, the quotient will have an element of order $p$, again by Cauchy's theorem.