Mutations effect genes and genes encode proteins.How is it possible for mutations to be either neutral,harmful,or beneficial?

Mutations effect genes and genes encode proteins.How is it possible for mutations to be either neutral,harmful,or beneficial?consider the consequence of mutation on protein structure/function.