Jesus Christ speaks to prophets and tells them to teach people about His wonderful gospel. Moses was a prophet. So was John the Baptist.
Joseph Smith was the first prophet of the restored Church.
Jesus Christ revealed to the Prophet Joseph Smith that a temple should be built in Nauvoo.