I think there are three basic ways to get vibrato:
1) While holding down the string you're playing, bend it up and down, very slightly.
2) Slide your finger up and down the string you're playing, but make sure to stay within the boundaries of the fret.
3) Firmly plant your finger in one spot, then just wiggle the rest of your hand like crazy. This is what I do. :)