Eoin Morgan was glad to find some form as his sensational century helped England to a six-wicket win over Ireland at Malahide.