If you use enter in the visual editor, that’s encoded to specific markup which WordPress then stores on save and uses on the frontend. If you enter spaces in the source/code editor, those are filtered out on the frontend. In the source/code editor you need to manually enter <br> line breaks.