The sentence describes two simultaneous actions. The conjunction 'while' is used to connect two clauses that are happening at the same time. Therefore, 'while' is the most appropriate choice to complete the sentence, indicating that Sam was dancing while his friends were singing.