Many enemies have shields or other methods of blocking that prevent any of your attacks from doing damage. To counter this, don’t forget to block yourself, which you can do by pressing B while standing still. Wait for an opening (just after the opponent attacks) to come out of the block and counterattack.