When in doubt, a simple "Hello" or "Hello, this is John" will do.
Unless someone (such as an employer) asks you to answer the phone in a particular way, choose a style that's comfortable for you and polite to others. Just avoid answering the phone in a way that may make the person on the other end feel uncomfortable or put on the spot (such as, "What?" or "Who is this?")