Here's how to properly install a sill plate on top of a foundation wall. Sink anchor bolts into your foundation every four feet, laying a sill seal on top of the foundation to create a weather barrier. Pre-drill two-by-six sills to accommodate the bolts. Use pressure-treated lumber to resist water and insect damage. Secure the sill in place with a washer and nut.
For more on foundations, consider:
Advanced Framing Techniques
Concrete, Block, and Slab Foundations
Home Foundation Inspection (VIDEO)