Creating and recording music used to cost a ton of money. Now you can create a lot of music right from your personal computer/tablet. Here are a few free tools you can use to create music on different devices.
Apple Devices (Ipad, Mac, Iphone): Garageband
Android Devices (Non Iphones, Chromebook, etc): BandLab
Both of these tools feature multi-track audio editing for free. You can use loops to create your own music or record music through the microphone!