That is the brake light switch. Interestingly, if you can get it to work when moving the connector, that must be where the problem is. However, I wouldn't have guessed that. The part you circled is the actuator for the switch. Basically, when you depress the brake pedal, that closes a circuit in the switch and turns the lights on. Basically the same thing as a light switch at home does when you turn the light on and off.
Did you disconnect the connector to inspect it?
Here is the test procedure for the switch itself. It will require the use of a multi meter to check for continuity.
2008 Jeep Truck Liberty 2WD V6-3.7L
Brake Lamp Switch
Vehicle Sensors and Switches Sensors and Switches - Lighting and Horns Brake Light Switch Testing and Inspection Component Tests and General Diagnostics Brake Lamp Switch Diagnosis and Testing Brake Lamp Switch
BRAKE LAMP SWITCH
BRAKE LAMP SWITCH
WARNING: To avoid serious or fatal injury on vehicles equipped with airbags, disable the Supplemental Restraint System (SRS) before attempting any steering wheel, steering column, airbag, Occupant Classification System (OCS), seat belt tensioner, impact sensor, or instrument panel component diagnosis or service. Disconnect and isolate the battery negative (ground) cable, then wait two minutes for the system capacitor to discharge before performing further diagnosis or service. This is the only sure way to disable the SRS. Failure to take the proper precautions could result in accidental airbag deployment.
CAUTION: Do not remove the brake lamp switch from the mounting bracket. The self-adjusting switch plunger is a one time only feature. If the switch is removed from the mounting bracket, it MUST be replaced with a new switch.
1. Disconnect and isolate the battery negative cable.
2. Disconnect the wire harness connector from the brake lamp switch.
3. Using an ohmmeter, perform the continuity tests at the terminal pins (1) in the brake lamp switch connector receptacle as shown in the Brake Lamp Switch Tests table.
4. If the switch fails any of the continuity tests, replace the ineffective brake lamp switch as required.
Let me know if you are comfortable performing that test.
Images (Click to enlarge)
Wednesday, May 27th, 2020 AT 8:44 PM