4 cyclinder 2002 honda accord

Brake goes to the floor and can’t get the car out of park have to pump the brake several times and sometimes it will respond but most time it won’t

Jeez, you’re messing with your life here. Get the &$&^*% brakes fixed. NOW! The master cylinder may just need to be refilled and the air that is now in the system bled out. OR you may need a complete brake job. I’m not there, I can’t tell. Once that is done the car will come out of park as the switch that controls it has to function properly in order for the solenoid that allows the selector to come out of park to operate.