Question: do villagers need to be in a village to breed?
Answer: Villagers must be "willing" in order to breed. Villagers can become willing if the player trades with them. Willingness is granted the first time a new offer is traded, or at a one-in-five chance on subsequent trades. This does not cause them to immediately seek out a mate, however.