There are four past tense forms in English:
We use these forms:
to talk about the past:
He worked at McDonald’s. He had worked there since July.
He was working at McDonald’s. He had been working since July.
to refer to the present or future in conditions:
He could get a new job if he really tried.
If Jack was playing they would probably win.
It might be dangerous. Suppose they got lost.
I would always help someone who really needed help.
I wish it wasn’t so cold.
I would have helped him if he had asked.
It was very dangerous, What if you had got lost?
I wish I hadn’t spent so much money last month.
Excuse me, I was wondering if this was the train for York.
I just hoped you would be able to help me.