Does the church of Christ believe in heaven and hell?

Yes. The statement of Christ in Matthew 25, and elsewhere, are taken at face value. It is believed that after death each man must come before God in judgment and that he will be judged according to the deeds done while he lived (Hebrews 9:27). After judgment is pronounced he will spend eternity either in heaven or hell.