What to do when someone has a stroke or heart attack when waiting for 911?

Also i’d like to now, how would you be able to recognize if the person is having a stroke or heart attack??