So there's no natural immunity after having it once? How would a vaccine work then?

There are many strains. You will develop immunity to one strain, but not the others.

I assume a vaccine would try to be multivalent.