Performing CPR on someone experiencing a heart attack can help maintain blood flow to the heart and improve the chances of survival. CPR involves chest compressions and rescue breaths, and it is important to receive proper training before attempting to perform CPR.