If you are in the same stance as the attack from the enemy then you take less damage. If you hit their weapon whilst they are attacking then you block their attack.
Happy to be of help.