They are both used to keep conductors apart. It's termed a dielectric where its permittivity is central to that application, as in capacitors and transmission line and coaxial cable. There are a few materials that can be used as a dielectric even though they are not good insulators, e.g., water.