Confused with ' ' , " " ... used in commands

What happens to the shell when we include ' ' or "" in our commands ..And what happens if we use only the commands without single or double quotes.
I don't know the use of these things.
Can you please help me with simple example please ? using ls or grep
Thanks a lot