There are some enemies that you just can't attack. The little guys that throw stones are the earliest ones. The rats might also be an issue. The green slugs are a good enemy to practice with. You need to run into them directly and moments before you are going to bash into them trigger a melee attack. By the time you hit the enemy you should hit them right away. The slugs will usually make an attack animation but will not actually hurt you.