How to add and change gradient to a layer?

Is it possible to add and change the gradient to a layer?
If so how? Please tell me.

Thanks