Immunity doesn't last for the common cold because there's so many viruses that cause it.
It is just mild enough. There's another one alphacoronavirus in about 5% of colds that is much worse. (Not counting SARS group.) Mind you parallel infection with multiple viruses is common.