What are some Basic Variation tricks?

If i write a motif,Lied,melody line,theme how do i write variations ?

I know composer Max Reger takes Beethoven,Mozart,Bach theme or melody lines and writes variations how does he do this?