Have you read http://wiki.openstreetmap.org/wiki/OpenLayers already? There is a simple example there.