Once you have a sword that is enchanted with Knockback, you need to hold the enchanted sword in your hand. When you attack with this enchanted sword, you will see a higher knockback dealt to the mob.