Hi, what's up , i would recomend you to listen to bands like NoFX , Dropkick muprhy, Green Day, Blink 182, Sum 41 and the one and only Sex Pistols, then learn their songs or at least your favorite songs from that bands, then learn theory, and discover in what key are those songs then look out for the chord progressions that they are using on the chorus and verses, then try to apply that chord progessions to your own melodies or riffs, that's kinda the art of writting, taking something you like from one band or many bands and incorporate it to YOUR OWN way of playing but changing it to create something new, because if you only rip off chord progressions you will be copying them, so the thing here is to know what chord progressions define the genre and then adding your own ideas to it to see what it sounds like. i hope this is useful for you!