We can use it to talk about things in the future that are probably not going to be true.
If I sold my house, I would be rich.
(I'm not going to though. Where would I live?)
We can use it to talk about something in the present which is impossible, because it's not true.
If I had his number, I would call him.