Summary:

Ranged units (naval, ground, or missiles) cannot capture a city - although they certainly can soften one up a good deal before a melee unit strolls right in.