Would can be used in many situations. Most of the time we use would in conditional sentences and questions, but there are many exceptions.
Here is an example in the past;
"She would have gone on holiday, but had broken her leg."
We can also use would in the present;
"Would you pass me the salt and pepper, please?"
And if you want, also in the future;
"If I won the lottery, I would buy a new house."