It happened to me once, and it SUCKS. Maybe they value someone else's friendship over yours because they have known them longer or seem more alike.
If they are indirectly leaving you out, like maybe having more fun with the other people or accidentally not mentioning or texting/calling you, then try to intervene by adding yourself in.
If they are directly leaving you out, like ignoring you with a ugly-ass expression or telling you to go away or something, then I'm sorry, they don't value your friendship at all or never had; in that case don't feel bad, it's not your fault.