To attack a creature, move within range (move to where you can see the attack cursor 2moons gold when you mouse over the creature - a grayed out cursor means you are out of range) and right-click on the creature. You will enter attack mode. Move your character next to the creature and you will automatically begin to attack. In addition to right-clicking on a creature, you may also select the "attack" icon from the Action Bar.