Why does it hurt ??

So I'm 13 and I have tried to masturbate a couple of times but it always hurts and idk what to do... am I doing it wrong ??