Freezing, melting and the glass transition in a suspension of hard spheres