You do attack.. but maybe your THAC0 is not good anough or you have a weapon you are not proficiended with. For your spells, if you are in a melee with many monsters and decided to cast a spell, make sure no monsters hits you or you lose concentration and your spell will be interrupted. Make sure you have stone skin blurr or mirror image cast on before an attack. That will help casting without beeing interrupted.
------------------
Maybe it's because I hate drows more than I hate Humans - Jarlaxle to Entreri