look at the intervals between notes and try to see how the notes in the lead relate to the chords playin over them.
then try and learn about cadences.
if you know all this you have to aply itr and that is often the hard part. i try to look at all the intervals in pieces ive learnt and relate them to the chords.
hope that helps.