1. smelled is being used as a verb - it is showing action.
2. smelly is being used as an adjective because it is describing the sock. Sock is a noun in this sentence and adjective describe nouns.
3. Smelliest - I would say this is used as an adjective too. It is describing the dinner.