Here are some melodies in various times and keys for you to harmonize with primary triads. In the beginning, it is a good idea to first write down the notes contained in the primary triads of the key of the melody you are working on.
In time, you will know them from memory and this will become unnecessary. Once you have harmonized each melody, experiment until you find the harmony that sounds best.