Answer:
Goats and sheep have very sharp teeth, so it is not a good idea to put your fingers in their mouths. But they do not bite or nip when they fight or to defend themselves (like horses sometimes do). When they fight with each other (or are occasionally naughty toward people) they butt with their head.