Perform assembly/alignment of two objects
One easy way is to use vertex snapping and the origin point.


Make sure your sphere is oriented correctly.
Enable Vertex snapping > Median
Check Only origins and snap your origin point to the top vertex. Then uncheck.
Select your sphere and snap it to the other object's top vertex


Snap the origin point to the top vertex


Snap the sphere to the other object's top vertex