How did Jesus explain to Martha and Thomas separately, that he is the resurrection and the life?
How Jesus explained separately to Martha and to Thomas that He is the resurrection and the life
To Martha (John 11:17-27): When Lazarus had died and Jesus came to Bethany, Martha met Him and said, "Lord, if you had been here, my brother would not have died. But even now I know that whatever you ask of God, God will give you." Jesus said to her, "Your brother will rise again." Martha, thinking only of the last day, replied, "I know that he will rise again in the resurrection at the last day." Then Jesus made the great declaration, "I am the resurrection and the life. He who believes in me, though he die, yet shall he live, and whoever lives and believes in me shall never die." He then asked her, "Do you believe this?" Martha answered, "Yes, Lord; I believe that you are the Christ, the Son of God, who is coming into the world." Jesus went on to prove His words by raising Lazarus from the tomb after four days.
To Thomas (John 14:1-6): In the upper room, comforting His troubled disciples before His death, Jesus told them that He was going to prepare a place for them in His Father's house, and that where He was going they knew the way. Thomas said to Him, "Lord, we do not know where you are going, so how can we know the way?" Jesus answered him, "I am the way, and the truth, and the life. No one comes to the Father except through me." By this Jesus taught Thomas that He Himself is the living way to God and the source of eternal life; through faith in Him one passes from death to life and reaches the Father.
Thus to Martha He revealed Himself as the resurrection who conquers death, and to Thomas as the life who leads believers to the Father.