Just as you learned the major and minor scales and chords, you should also have arpeggios in your bag of tricks. These ascending/descending patterns are amazing for navigating the neck and playing through simplistic chord changes. Make sure to practice them in context, with a chord playing in the background so you can internalize the sound of each one over its corresponding chord.
Analysis on chord construction and how to form simple arpeggios
Corresponding arpeggios, scales and chords that form the basis of any harmonic sequence
Explanations of how to use arpeggios along with scales to create a free flowing melody or solo that perfectly outlines the chord shape