All guns can and do malfunction. Malfunctions with quality guns are most often the result of (and usually in this order):
1. Shooter error
2. Faulty ammo
3. Gun/magazine problems.
Practice regularly and keep your weapon clean and in good working order. Buy a quality gun and equipment. Use the best ammo you can get.