There are four basic causes for a particular guitar sound.
1) The guitar itself, the wood it’s made of, it’s pick ups, strings all play a part in the sound it outputs
2) The signal chain, the effects, how the signal is sent, further colour the signal
3) The amp and speakers through which a guitar is played adds enormously to the sonic colour
4) You, the player, how you inflect a notes, your style, rhythm and feel are the single largest component to individual tone.