Whirpool gas dryer won't heat already replace the coils and flame sensor and no heat

Have whirpool gas dryer that won’t stay hot I replaced the coils and flame sensor and the burner kicks on stays on for 30 to 40 seconds then shuts off and takes 3 60 minute cycles to dry clothes me and my father in law need help please!!