Both piecewise and step functions are defined on interval. But they have different expression on intervals. The difference between them while the expression on intervals for the piecewise function can be any function. In case of step functions the functions on the interval are only constant functions.
Thus, the step functions are a particular case of a piecewise function.