Because gravity and other forces are always affecting the body, there is no way to actually stop it proper but here are two possible solutions.
1) You can apply a negative velocity which will make it look like the object is standing still:
b2Vec2 vel = myBody->GetLinearVelocity() * -1;
myBody->SetLinearVelocity(vel);
However, this won't work too well on free falling objects as gravity will still pull it down (it will appear as if it's falling reeeeeeeeeeeeeeeeaalllly slowly). If the body is moving only left/right you might be able to get away with it.
2) Alternatively, you can do something hacky like this and force Box2D to not update the body's position:
if(myBody->GetType() == b2_dynamicBody)
myBody->SetType(b2_staticBody);
else
myBody->SetType(b2_dynamicBody);
This will toggle the body's type between a static (stationary) and dynamic (moving) body type. This will prevent the body from moving altogether, but it will also mean the body will no longer respond to being collided with.
Or, like Techy mentioned you could set the velocity to 0. Though, this will have the same result as method #1. Object will move slowly in the direction of gravity, but otherwise will be "standing still".
-robodude666