Other contributors have said "How much does a writer makes writing music?" is the same question as "How much does a composer make writing music?" If you believe that these are not asking the same thing and should be answered differently, click here
The easiest way is probably to record an album and try to sell it But in general a record company might buy the rights to a musicians song and that way the company can promote it to a wider audience...