noun
spacecraft
General term for any vehicle designed for space travel, including satellites, probes, and crewed vessels.
その宇宙機は火星に着陸した。
The spacecraft landed on Mars.
新しい宇宙機の開発が進んでいる。
Development of a new spacecraft is underway.
ロケット refers specifically to a rocket (launch vehicle), whereas 宇宙機 is the vehicle that travels in space.
Compound of 宇宙 (uchū, 'space') and 機 (ki, 'machine').