In short, herbs are fresh and spices are dried, but it is not that simple. Most herbs are fresh plants, sometimes on the stem (like rosemary), sometimes not (like bay leaf). Spices are non-leaf plant parts, dried, and usually ground to a powder. Of course there are exceptions like cloves and star anise.
From Iowa State University in the US (your regional definitions may differ):
Herbs are obtained from the leaves of herbaceous (non-woody) plants.
They are used for savory purposes in cooking [...]. Herbs
originated from temperate climates such as Italy, France, and England.
Herb also is a word used to define any herbaceous plant that dies down
at the end of the growing season and may not refer to its culinary
value at all.
Spices are obtained from roots, flowers, fruits, seeds, or bark.
Spices are native to warm tropical climates and can be woody or
herbaceous plants. Spices often are more potent and stronger flavored
than herbs; as a result they typically are used in smaller amounts.
Some spices are used not only to add taste, but also as a
preservative.
Some plants are both herbs and spices. The leaves of Coriandrum
sativum are the source of cilantro (herb) while coriander (spice) is
from the plant's seeds. Dill is another example. The seeds are a spice
while dill weed is an herb derived from the plant's stems and leaves.
Herb examples
- Thyme
- Sage
- Oregano
- Parsley
- Marjoram
- Basil
- Rosemary
- Mint
Spice examples
- Cinnamon - bark from the cinnamon tree
- Cloves - flower bud
- Saffron - dried stigma (female reproductive part) of saffron crocus flower
- Nutmeg - seed
- Vanilla - undeveloped fruit of an orchid flower
- Cumin - seed