Which is "better" comes down to personal taste, but here's a balanced look at the two.
Battlefield 3 tells a story that's easy to follow without deep knowledge of earlier games. Modern Warfare 3 (assuming that's the "Call of Duty 3" you meant) continues the arc from the previous two titles, though newcomers won't feel lost. Both campaigns are fairly short, with Battlefield 3 running a little longer.
Battlefield 3 offers larger maps and, arguably, a more strategic online experience. Modern Warfare 3 leans toward fast run-and-gun action on smaller, urban maps. Both include leveling systems that unlock new weapons and gear as you progress.
In short: pick Battlefield 3 for scale and tactics, or Modern Warfare 3 for quick, arcade-style combat.