Valves of heart

Does the tricupsid or bicupsid valves close due to muscle contraction or pumping of blood? Please explain.