The sparks/smoke were probably a result of the combination of heat build up and leaked fluids. The heat may be from bad wheel bearings or a stuck brake caliper. Of course it could be something entirely different. But I would start with those.