A student is one who studies, not necessarily under the direction of a teacher.
This is the common term for someone in secondary school or college.
A pupil is one who is under the supervision of a teacher.
Children in elementary school are usually called pupils.
Hope this helps