Collective excitations in liquid and glassy 3-methylpentane