Suppressing a behaviour by force is probably quite painful and your puppy may have temporarily stopped biting to avoid being hurt by you in the future. He will have no idea why he is being treated so roughly and there is no guarantee that the biting won’t happen later in life if, for instance, somebody accidentally steps on his tail.
Simultaneously uttering a guttural command or threat (e.g.,"No biting" = If you bite again I'll hurt you again, and for longer ) in English assumes your puppy is a mind reader or can miraculously understand whichever particular human language you used.
Nipping ankles or biting hands are invitations to play and when littermates continuously do so they mouth and bite each other all the time. If one puppy bites another too hard the game ends as the bitten puppy yelps and moves away; so if the biter wants to play again he needs to solve the problem himself by modifying the force of the bite and not to do it so hard the next time. This is a continuous and VERY necessary learning process throughout puppyhood, adolescence and adulthood.
Puppies that are taken away from their mother and littermates too early, e.g. at 5-6 weeks instead of 8-10 weeks, have inufficent time to learn how to play nicely and are therefore much more likely to nip and bite inappropriately. Single litter puppies are at an even greater disadvantage.