You're asking why wouldn't they pursue nuclear weapons and ballistic missiles to deliver them? Why should they? Don't you think as a country they should have some other priorities? Like ensuring Tehran has water? So because Trump tore up the agreement (and the US was sanctioning them anyways for their ballistic missile program and other reasons) that's somehow justification? Trump tore up the agreement because it would enable them to get there anyways and Iran refused to sign an agreement that would prevent them from getting there.
The JCPOA would have expired in 2025 anyways assuming that they even meant to observe it in the first place.
Your last statement isn't as solid as you think it is. Iran hasn't gotten to a point where they have nuclear weapons mounted on ballistic missiles not because they didn't want to but because they were unable to get to that or were concerned that getting closer would invite the same attack we're seeing today.
You're asking why wouldn't they pursue nuclear weapons and ballistic missiles to deliver them? Why should they?
Turned on a TV lately?