One main lesson is the importance of hard work. The third pig who built his house of bricks worked hard and his house withstood the wolf's attacks. Also, it shows the value of planning ahead. Instead of being lazy like the first two pigs, the third pig thought about the potential danger and made a sturdy house.
Well, from the story of the three little piggies, we learn that being prepared is crucial. Just like the third pig who was prepared for any threat by building a solid brick house. It also implies that we should not be easily influenced by others. The first two pigs might have been influenced by the idea of building quickly and easily, but that didn't end well for them. And finally, it shows that intelligence and resourcefulness, like using bricks to build a strong house, can save us from difficult situations.