As others have pointed out, these are dependent clauses, and in my school, we were taught there are essentially three categories of dependent clauses, based on their tense:
If you work hard, you will succeed.
If you worked hard, you would succeed.
If you had worked hard, you would have succeeded.
These all carry different sense and meaning, but if we use this template to judge your sentences, your first sentence is correct because it falls in the template. And second one doesn't.
Maybe what you're stating is a fact, or a general observation, and hence the first sentence from the template makes more sense.