Which of these sentences uses the passive voice?

You can succeed if you set goals and work hard.

If I set goals and work hard, I can succeed.

Success can be achieved by setting goals and working hard.