A molecular dynamics study of the melting of a three-dimensional crystal