Gamma and sine functions for Lie groups and period integrals