You plant some wheat, sorround it so villagers can't excape, put a farmer villager inside and boom. You got yourself a farming villager. Once he feels like farming of course. If you actually want the wheat, you should look up some tutorials on how to do that.