Conditional sentences express a connection between two actions or states. One thing happens because of another. These connections can be general, specific, likely, unlikely, real or imagined ...
To learn more about the second conditional, visit this Grammar Reference page. To learn more about the third conditional, visit this Grammar Reference page.