The main purpose of this study is to evaluate the safety and efficacy of the study drug known as galunisertib administered in combination with the anti-programmed cell death-ligand 1 (PD-L1) antibody durvalumab in participants with refractory metastatic pancreatic cancer.