There are 2 points that the psalmist wants us to grasp from his psalm (Psalm 107:4-32), i.e. calling to God and thanking God. In the psalm, he talked about 3 difficult situations. All of us can face any of them. Any of the situations could happen in our real life.
The first one depicts people who were lost in their journey. They could not find their direction. Everyone can experience this situation in any stage of their lives. We could lose our trust in others and become confused on whom to believe in. We could lose our sense of direction or our purpose of life, and become frustrated on why we should continue on living.
The second description tells us about people who were against the Lord and were imprisoned by their own sins. They lived gloomy lives and suffered the consequences of their own mistakes. We all have these dark moments in our lives. When we had not received Jesus, we often committed sins and felt the bitterness of them. Even when we believe in Jesus, we are still prone to sins. Often, we follow our own desires, but reap disasters from our decisions. We suffer for that.
The third situation describes skillful and capable people who were struck with problems that made them paralyzed and powerless. Human tend to be self-dependent. They think they can do everything by themselves. Those who have mastered some skills think that they are the best and no one can beat them. But life is not that straightforward. Disasters happen and unexpected situations turn up. We often become unprepared to face them and feel that all our skills cannot help us. Then, we lose our courage.
Although those 3 situations are different and each has its own level of difficulties, none is too hard to be solved if God is with us. In all 3 situations, the psalmist wrote that “Then in their trouble they called to the Lord, and He saved them from their distress” (Psalm 107:6,13,19,28). God can save all of us, no matter how hard our problems are. His power is limitless.
Similarly, in all 3 situations, the psalmist mentioned that “They must thank the Lord for His constant love, for wonderful things He did for them” (Psalm 107:8,15,21,31). He deserves our praises because He is a wonderful God who does a lot of wonderful things. We must not forget that when we are saved, it is all by God's grace, not by our own power or efforts. So, all the glory and praises shall be lifted up to Him.