My boyfriend and I couldn't keep it in

Around a month ago my boyfriend and I lost out virginity together.. We tried different positions but we couldn't keep it in. None of us came and we just gave up. What could we do next time ?