Do not lose heart.
For some time do not take part in any activity.
But concentrate on your study.
Work hard & bring good grades.
It will change the opinion of you class about you.
Taking part is a great thing itself. Whether you lose or win it does not matter.
Ignore their comments.