Eligibility depends on your work history, medical condition, and your ability to perform substantial work.