How did you apply? What experience, skills, and education did you have when you applied?
I won't pretend that I wasn't very lucky in timing, interviewers, etc, but you won't get anywhere if you don't roll the dice.
I've had several offers to go work for Microsoft (as that's where my skills lie) but I've turned them down as they all involved a hefty pay cut that I couldn't afford to do.