From the color dots on the bottom of the capacitor I would say it is a 3 section 'lytic with a common ground. 3 red dots indicating positive and one black dot indicating negative connection points
You can use one of the same value and the same or higher voltage. Be sure to totally disconnect the bad 'lytic. The fact the capacitor is grounded tot he chassis means you can use one that is non-insulated. The correct values for the capacitor in voltage and mfd. for replacement will be shown on the split grey plastic outer cover of the 'lytic.
IF THE VALUES or VOLTAGES ARE ALL DIFFERENT, THEN YOU MUST CONNECT THE WIRES UP TO THE PROPER TERMINALS. Otherwise it may explode.
The loose black one you show is NOT a suitable replacement.
Next to the capacitor it appears that someone may have re-soldered a ground connection with possibly acid core solder. That needs to be removed and the chassis and connection cleaned up re-soldering with rosin core solder.
Since the cover on the original cap is split, that indicates it has gotten hot. Replace it.
WV means working voltage. Example- If the capacitor says 350 WV, never go lower than 350 Volts rating, but you can always go higher in WV if you have the room for a larger capacitor, Say 400 WV as an example.
I might suggest you read a few books on basic electronics and repair. Should be some online, or at your local library.
Remember that the filter capacitors can hold a charge and can possibly kill you if they are not discharged.