First of all, pretend that they are just human beings, just like you are. That’s essential. You need to convince yourself that this is the case, whether it really is or not.
Second, don’t be quite so hard on yourself. It’s very doubtful, unless you have committed some particularly nasty crime, that girls in your class “hate” you. It’s most likely that they simply don’t know you at all. Maybe they don’t want to know you right now; it’s not the same as “hate”. As for the girls who lie to you, you wouldn’t want to associate with them anyway, would you?
Some guys think that in order to be liked by girls (and other humans) it helps them to be “interesting”, that is, “to attract attention”. For this reason they may become “the class clown” or do other things to attract the attention of the people they want to know. That works for some.
But if you’re more introverted than that, as I suspect that you are, then the path for you is to be “interested”. By that I mean “show an interest”. You can do this in many ways. For one thing, be aware of what is going on with the girls that you’re interested in and quietly offer assistance when you perceive that it’s needed. Listen when they speak, and offer occasional comments, laugh at their jokes.
One of the best pieces of advice that I can offer is to be friendly with the girl or girls who, like you, seem to feel alone and insecure. I’m sure those girls are in your class, too.