A compartmental model that predicts the effect of social distancing and vaccination on controlling COVID-19