When you open the Villager GUI, there is a section on the left with all the possible jobs that a villager can have. To assign a job to a villager, simply click on the job you want them to have and then click on the villager you want to assign it to.