Missing ingredients here.
Player catches at the three, momentum takes him into the endzone. End of story.
What action caused the fumble?
When did the fumble occur?
Did he leave the endzone?
If he stops in the endzone because he's a savy football player and knows he's safe there, and the ball is punched out of his hands by team B going OOB at the five. The ball is team A's at the three.