This could be a couple things.
The shift cable could be fetched up, the interlock solenoid could have gone bad, or could even be an issue with the stoplight switch.
Do you hear the normal "click" that you should when you step on the brake?
That click would be the solenoid releasing the shifter.

