What forced japan to surender what were the names of the two planes involved?

The nuclear bombs were the answer to the war and the planes were the Enola gay in Hiroshima and Bock's car in Nagasaki.