The order parameter model of liquids and glasses with applications to dielectric relaxation