A sub-resolution multiphase interstellar medium model of star formation and SNe energy feedback