Generally you need an EIN when your business is formed and filed as a new corporation or LLC, will have employees, and will open a business bank account.
If you are a sole proprietor, your social security number can be used on all of your government forms and other official documents, but most small business advisors recommend that you apply for an EIN and use that number instead.