The only train between Yokohama and Kurihama that would have vending machines is the occasional N'Ex that goes all the way to Kurihama. The JR rapid service trains definitely don't -- at least I've never seen one and I've ridden a lot of JR rapid service trains!