Alex Hales admits he thought his England career was over after three-and-a-half years in the international wilderness.