The word would have more than one meaning, and its meaning depends on the sentence itself and according to the type of sentence. But its main meaning is (past of will). It's used to express what someone said or that something was going to happen. It also used to express imagining of something that didn't happen. foe ex:
If I had a lot of money, I would buy a smart phone.
The boy said that he would like yo be a doctor..