1. Type in chat /give YOUR_NAME minecraft:command_block
2. Place the command block by right clicking the ground, right click the command block, copy and paste the command. CTRL+V. or COMMAND+V
3. Power the command block by a redstone source and the villager will be summoned.