What is the significance of speaking in tongues and prophecy?

Speaking in tongues is a way to communicate privately with God, providing personal edification, while prophecy involves speaking words of encouragement, guidance, or revelation for the benefit of others and the community’s spiritual growth.