Condoms

When my boyfriend and I had sex the condom broke, I was just wondering could this have been user fault and what can we do to make sure it doesn't happen again?