Well we know that we are created as spirits before we came to the earth
If we turn to the scriptures, we read in Revelation 5:13, "And
every creature which is in heaven, and on the earth, and under the earth, and such as are in the sea, and all that are in them, heard I saying, Blessing, and honour, and glory, and power, be unto him that sitteth upon the throne, and unto the Lamb for ever and ever."
So we can see that every creature has glory and are unto the Savior forever and ever. We can indicate that there may be some animals in the heavenly thrones above. Alma 40:23 states in reference to resurrection, "The soul shall be restored to the body, and the body to the soul; yea, and every limb and joint shall be restored to its body; yea, even a hair of the head shall not be lost; but
all things shall be restored to their proper and perfect frame."
What these verses teach is that because of Jesus Christ, we are all saved from temporal death and will be resurrected. Alma 11:42 states, "Now, there is a death which is called a temporal death; and the death of Christ shall loose the bands of this temporal death, that all shall be raised from this temporal death." The greatest peace and comfort to me is knowing that when I die, I will have my body restored. Regardless of what you have done, Christ has saved you from physical death. However, God has placed on the earth to see if we will follow His plan. We are told countless times by the prophets and throughout the scriptures that we must keep His commandments, have faith in Jesus Christ, repent, get baptized, receive the Holy Ghost, and follow Christ for the rest of our lives. I know that Christ lives and Heavenly Father loves each and everyone of us. If we have doubts in your faith, pray to the Father in the name of Christ. Pour out your whole soul to Him and you will be comforted. I can also testify that the Lord has placed a prophet on the earth today, Russell M. Nelson, and the Lord is hastening His work before His Second Coming. I am a witness that the Book of Mormon is the word of God, I have drawn closer to Jesus Christ and Heavenly Father by reading it daily. I also testify the Bible is the word of God and the Bible and Book of Mormon complete and complement one another. I have received this witness from the Lord, through His Holy Spirit. If you love learning about Christ, you'll love the Book of Mormon. The book is free and available to anyone who would like to read it.
Some further information:
Do animals have spirits? What happens to them after they die? - new-era
Resurrection
Spirit World
worshipwithus.org