Very light on detail! But, the most common reason a manual transmission (assuming it's manual) would jump out of gear is due to low or contaminated fluid, worn synchronisers inside the transmission, or improperly adjusted shift linkage. Also make sure transmission mount is checked for excessive wear because bad mounts have been verified as a fix to similar concerns. One of those things that could be cheap to expensive to fix, your trustworthy garage will let you know...