I'm not sure what you meant to ask with that question. Technically, the two are different machines although they may be constructed as a combined unit for convenience and efficiency.
A pump is a device for moving some substance that can flow, most commonly a fluid but sometimes a loose solid like sand, grain, etc. A pump needs a power source to drive it just as an electronic device needs a power supply. That power source is often (but not always) a motor.
A motor may be defined as a machine for converting some form of energy into motion. Of course, when a pump and its driving motor are made as a combined unit, the whole assembly is often simply called a pump.