I had this happen to my car a couple of months ago. If I could put on the emergency brake, and then release it, I could put it in gear. Turns out, it had to do with something that ran alongside the brake, and it wasn't engaging, therefore, the car wouldn't shift. It was a simple fix, but frustrating until it got figured out.