You are in a combat situation. Mastery of the battlefield is important. Zoom out (scroll backward) in combat to gain a better view of your situation. You can also pause for tactical preparation by pressing Space.
Mages can use spells to attack enemies. Simply left-click on the spell in your quickbar and then left-click on your target. When you run out of mana, you cannot cast any more spells.