Here is where most beginners fail. For a penis mesh to move with the avatar's hips (when dancing, walking, or sitting), it must be rigged to the correct skeleton.
If you are looking to create or find such items, here are the relevant resources: penis mesh for imvu top