Ok...this will be short.
Learn Pentatonic scales. Learn their sound. Learn them up 2 octaves. This is used aaaaalllll over gospel music. You will recognize it when you hear it. You can use these to solo or to add in that quick little riff in the space between the groove.
This is how they are built.
Major: 1, 2, 3, 5, 6
Minor: 1, b3, 4, 5, b7
If you are playing in a major key, use the major. Minor key, use the minor from the root.