To get spells in Epic Pet Wars (EPW), head to the Item Shop and use the quick jump to the Spells section.
Keep in mind that spells become available as you level up—you'll need to reach the appropriate level before they appear. Also, the higher-level a spell is, the more in-game money you'll have to pay for it. So focus on leveling up and saving your coins for the spells you want most.