Greetings!
You gain spells automatically as you level up on the server. If you don't understand how to level or just want some basic knowledge tips about Potterworld, I suggest doing /faq while you're in-game.
If you are still having trouble, feel free to create a ticket in-game using /t create.