Thorns are modified
leaves
axillary buds
flowers
roots.
Thorns are aerial modified stems. These are usually modified axillary buds and rarely terminal buds.