Brillouin scattering in the nematic and isotropic phases of a liquid crystal