This question already has an answer here:

In X-Men: The Last Stand Professor X dies, so how is he alive in X-Men: Days of Future Past? That makes no sense if he dies before they reach that future.

merged by Napoleon Wilson Aug 5 '15 at 11:10

This question was merged with What happened to Charles Xavier after X-Men 3? because it is an exact duplicate of that question.