I am new in Blender. I used Blender 2.91.0 under windows 10. I designed a basic cube in Onshape (kind of solidworks software) and exported as STL file. I imported this part in Blender, applied an image texture (in base color) but the texture is not displayed. If I do the same think with the startup cube already created in Blender, It works properly. See below some screenshots. Any ideas why the texture cannot be seen on STL imported part?
Following your recommendation, I applied an UV unwrapped and the texture is now displayed but how to have similar pattern that for the other cube?