Sheep is the general word for the animal in question. A ram is a male sheep and a ewe is a female sheep, while a lamb is a baby sheep.
You probably already know that sheep doesn't change in the plural (1 sheep, 2 sheep, 3 sheep, etc), while the other three words add -s in the plural.