The relative amplitudes (strengths) of the various harmonics primarily determine the timbre of different instruments and sounds, though onset transients, formants, noises, and inharmonicities also play a role.
Variations in the frequency of harmonics can also affect the perceived fundamental pitch.