To expand on Calvin's point (which is a great method), standing in a room with your band and ask the drummer to "give you a beat." Then start jamming to it, and finding bits of stuff that works. Not lead, but riffs, parts, chords, etc. Keep playing it, fine-tuning it and having fun with it, and...