When you are listening to albums, try to sing along with the solos and visualize which strings and frets you would play and the techniques you would use to achieve the sounds you are hearing.
This helps you absorb the music and before long, it starts to come out in your own playing. It is also valuable to play along with albums, sometimes imitating what you are hearing and other times improvising. This is great ear training and is also a lot of fun.
As well as this, it is essential to transcribe lines and whole solos from your favorite players. By doing this, you will be able to analyze the lines to understand what it is you like about them and then incorporate them into your own playing. It is important to transcribe a variety of players from different eras rather than just imitating one favorite (who wants to be a clone?). You will learn something different from each player and will also open yourself up to new ideas and new sounds. All the great players have done lots of transcribing. Make it part of your daily practice routine.