Dark energy: the equation of state description versus scalar-tensor or modified gravity