An implantable medical device, IMD, (100) is connectable to at least one ventricular lead (210) having a ventricular basal electrode (214) and a ventricular apical electrode (212). The IMD (100) comprises a pulse generator (120) for generating pacing pulses applied to a heart (10) through the ventricular lead (210). The operation of this pulse generator (120) is controlled by a controller (130) that is configured to control the pulse generator to first deliver a pacing pulse to the ventricular basal electrode (214) to stimulate the basal portion of the ventricle (12, 14) before a pacing pulse is delivered to the apical portion of the ventricle (12, 14) by the ventricular apical electrode (212). This pulse sequence achieves a biologically more correct cardiac stimulation and a contraction pattern that reduces the risk for valvular regurgitation.