The second conditional: Used to talk about a hypothetical, but possible future, and secondly, things or situations in the present that are impossible, or totally hypothetical.
The third conditional: Used to talk about a hypothetical past, to describe something that didn't happen.