My car won't start! Please help on 2006 BMW 325i

When I put the key in, press the brake and push the start button, everything turns on but just cranks and won't start. Would I have to take it to a dealer or can I fix it myself?

Asked by for the 2006 BMW 325i