The cup coming out would be very unusual as yes normally they are hammered out and pressed in-- not talking about the upper race that spins down onto threaded fork are you? If the cup did just fall out check to see if any damage to headset or tubing and you may need to buy another headset to get a correct cup. Pictures always help.