To understand what's going on in the spaceship, we have to have a look at a particular motion first: the horizontal throw.
A ball is thrown horizontally and falls to the ground due to the fact that Earth and ball attract each other because of their masses. The trajectory of the ball consist of two motions* (see arrows above) which are...
a) ... orange: accelerated motion, blue: uniform motion
b) ... orange: uniform motion, blue: uniform motion
c) ... orange: uniform motion, blue: accelerated motion/free fall
d) ... orange: accelerated motion, blue: accelerated motion/free fall
*We do not consider air friction.