Smart UV Project/Unwrap
This usually happens, when your object has non-uniform scale.
You need to apply scale first for a correct UV unwrap.

Object > Apply > Scale



Also, make sure your texture is connected to the UV map