These steps are for Swords and Sandals 3.
From the castle screen, click the red helmet on the right, then click the hat icon to open your spellbook. Select a spell you have bought and drag it into one of the orange boxes to equip it.
Once you are in battle, click the spell icon to cast. If the icon is not there, the problem is almost always that nothing is equipped — spells have to be assigned before the fight, not during it.